Skip to content

Commit

Permalink
ui: fix redirection after saving in editor
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Garcia Garcia <miguel.garcia.garcia@cern.ch>
  • Loading branch information
miguelgrc committed Sep 30, 2024
1 parent a918d29 commit cf6337e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ui/cap-react/src/actions/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ export const saveSchemaChanges = () => (dispatch, getState) => {
description: "schema successfully created",
});
dispatch(updateDepositGroups());
dispatch(push(`/admin/${config.get("name")}/${config.get("version")}`));
dispatch(
push(`/admin/editor/${config.get("name")}/${config.get("version")}`)
);
})
.catch(err => {
let errorHeading, errorMessage;
Expand Down
4 changes: 2 additions & 2 deletions ui/cap-react/src/antd/schemas/components/Schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ const Schemas = ({ match, pushPath }) => {
/>
</Modal>
<Row>
<Col xs={4}>
<Col xs={8}>
<Menu
mode="horizontal"
className="no-bottom-border"
Expand All @@ -204,7 +204,7 @@ const Schemas = ({ match, pushPath }) => {
]}
/>
</Col>
<Col xs={20}>
<Col xs={16}>
<Menu
mode="horizontal"
selectable={false}
Expand Down

0 comments on commit cf6337e

Please sign in to comment.