From cf6337e58ebef68520b27d9b011520f7e26c1267 Mon Sep 17 00:00:00 2001 From: Miguel Garcia Garcia Date: Mon, 30 Sep 2024 16:23:27 +0200 Subject: [PATCH] ui: fix redirection after saving in editor Signed-off-by: Miguel Garcia Garcia --- ui/cap-react/src/actions/builder.js | 4 +++- ui/cap-react/src/antd/schemas/components/Schemas.js | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ui/cap-react/src/actions/builder.js b/ui/cap-react/src/actions/builder.js index 8f386c902..2bf6e87a0 100644 --- a/ui/cap-react/src/actions/builder.js +++ b/ui/cap-react/src/actions/builder.js @@ -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; diff --git a/ui/cap-react/src/antd/schemas/components/Schemas.js b/ui/cap-react/src/antd/schemas/components/Schemas.js index 5b6edd1f0..36afbbe77 100644 --- a/ui/cap-react/src/antd/schemas/components/Schemas.js +++ b/ui/cap-react/src/antd/schemas/components/Schemas.js @@ -184,7 +184,7 @@ const Schemas = ({ match, pushPath }) => { /> - + { ]} /> - +