From bfd612910c4b216ce4c380c0a2c2d4db6a2d531b Mon Sep 17 00:00:00 2001 From: Eric Wei Date: Wed, 17 Nov 2021 15:26:15 -0800 Subject: [PATCH] fixed vis saving issue (#262) Signed-off-by: Eric Wei --- public/components/explorer/explorer.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/components/explorer/explorer.tsx b/public/components/explorer/explorer.tsx index 5e5490d9e0..e066c7e764 100644 --- a/public/components/explorer/explorer.tsx +++ b/public/components/explorer/explorer.tsx @@ -729,6 +729,7 @@ export const Explorer = ({ })); }); history.replace(`/event_analytics/explorer/${res['objectId']}`); + return res; }) .catch((error: any) => { if (error?.body?.statusCode === 403) { @@ -794,6 +795,7 @@ export const Explorer = ({ }); history.replace(`/event_analytics/explorer/${res['objectId']}`); setToast(`New visualization '${selectedPanelNameRef.current}' has been successfully saved.`, 'success'); + return res; }) .catch((error: any) => { notifications.toasts.addError(error, {