Skip to content

Commit

Permalink
fixed vis saving issue (opensearch-project#262)
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Wei <[email protected]>
  • Loading branch information
mengweieric authored Nov 17, 2021
1 parent 70d015d commit bfd6129
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/components/explorer/explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ export const Explorer = ({
}));
});
history.replace(`/event_analytics/explorer/${res['objectId']}`);
return res;
})
.catch((error: any) => {
if (error?.body?.statusCode === 403) {
Expand Down Expand Up @@ -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, {
Expand Down

0 comments on commit bfd6129

Please sign in to comment.