From ab1525f55da4c442ed9cbda9108b65411c4ce412 Mon Sep 17 00:00:00 2001 From: afonso pinto Date: Wed, 6 Nov 2024 16:46:44 +0000 Subject: [PATCH] SCKAN-342 fix: Refresh statement after via/destination creation --- frontend/src/components/Forms/StatementForm.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/components/Forms/StatementForm.tsx b/frontend/src/components/Forms/StatementForm.tsx index c801e19f..d21494a4 100644 --- a/frontend/src/components/Forms/StatementForm.tsx +++ b/frontend/src/components/Forms/StatementForm.tsx @@ -219,6 +219,7 @@ const StatementForm = (props: any) => { anatomical_entities: [], from_entities: [], }); + refreshStatement(); }} onElementReorder={async ( sourceIndex: number, @@ -422,6 +423,7 @@ const StatementForm = (props: any) => { anatomical_entities: [], from_entities: [], }); + refreshStatement(); }} hideDeleteBtn={statement?.destinations?.length <= 1 || isDisabled} showReOrderingIcon={false}