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 <[email protected]>
  • Loading branch information
miguelgrc committed Oct 2, 2024
1 parent a38e91e commit 61c4524
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 @@ -178,7 +178,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 61c4524

Please sign in to comment.