From ee4f981cee56e44b507fb4db8b18523b9d20a546 Mon Sep 17 00:00:00 2001 From: Ryan Mathis Date: Thu, 28 Oct 2021 09:57:20 -0700 Subject: [PATCH] Fixed issue with navigation --- ui/src/app/metadata/editor/MetadataEditor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/src/app/metadata/editor/MetadataEditor.js b/ui/src/app/metadata/editor/MetadataEditor.js index 3281ee100..1ebc8e8f0 100644 --- a/ui/src/app/metadata/editor/MetadataEditor.js +++ b/ui/src/app/metadata/editor/MetadataEditor.js @@ -71,10 +71,9 @@ export function MetadataEditor ({ restore, current }) { const resetBlock = blocking; setBlocking(false); setTimeout(() => { - history.push(path); + history.push(restore ? `../${path}/edit` : path); setBlocking(resetBlock); }); - // setBlocking(resetBlock); }; const [blocking, setBlocking] = React.useState(false);