From 16f183fdafb4d13fe0eec75b7b6521b25f4107d1 Mon Sep 17 00:00:00 2001 From: mwapst <163834242+mwapst@users.noreply.github.com> Date: Tue, 13 Aug 2024 09:57:16 +0100 Subject: [PATCH] Fix unhandled error when cancelling Create a new proposal fixed path in function handleCancel --- src/main/webui/src/ProposalEditorView/proposal/New.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webui/src/ProposalEditorView/proposal/New.tsx b/src/main/webui/src/ProposalEditorView/proposal/New.tsx index 81f95fe1..0d73cce1 100644 --- a/src/main/webui/src/ProposalEditorView/proposal/New.tsx +++ b/src/main/webui/src/ProposalEditorView/proposal/New.tsx @@ -106,7 +106,7 @@ const textFormatData = [ function handleCancel(event: SyntheticEvent) { event.preventDefault(); - navigate("../",{relative:"path"}) + navigate("/",{relative:"path"}) } return (