Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "links" collection to index resources, again #1594

Merged
merged 2 commits into from Mar 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions gradle/changelog/fix_index_links_in_repo_init_extension.yaml
@@ -0,0 +1,2 @@
- type: fixed
description: Index link collection in repository initialize extensions ([#1594](https://github.com/scm-manager/scm-manager/issues/1588) and [#1587](https://github.com/scm-manager/scm-manager/issues/1594))
Expand Up @@ -124,10 +124,11 @@ const RepositoryForm: FC<Props> = ({
if (isEditMode()) {
return null;
}
const indexResourcesWithLinks = { ...indexResources, links: indexResources?._links };
const extensionProps = {
repository: repo,
setCreationContextEntry: setCreationContextEntry,
indexResources
indexResources: indexResourcesWithLinks
};
return (
<>
Expand Down