Skip to content

Commit

Permalink
UIORGS-355 update
Browse files Browse the repository at this point in the history
  • Loading branch information
usavkov-epam committed Nov 18, 2024
1 parent 29b3283 commit 3099311
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Organizations/OrganizationVersion/OrganizationVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ const OrganizationVersion = ({

const onSelectVersion = useCallback((_versionId) => {
history.push({
pathname: `${ORGANIZATION_VERSIONS_VIEW_ROUTE}/${_versionId}`,
pathname: `${ORGANIZATION_VERSIONS_VIEW_ROUTE.replace(':id', organizationId)}/${_versionId}`,
search: location.search,
});
}, [history, location.search]);
}, [history, location.search, organizationId]);

const {
versions,
Expand Down
2 changes: 1 addition & 1 deletion src/Organizations/OrganizationsList/OrganizationsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ const OrganizationsList = ({

<Route
exact
path={ORGANIZATION_VERSIONS_VIEW_ROUTE}
path={`${ORGANIZATION_VERSIONS_VIEW_ROUTE}/:versionId?`}
component={OrganizationVersion}
/>
</PersistedPaneset>
Expand Down

0 comments on commit 3099311

Please sign in to comment.