Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Jun 30, 2023
1 parent d27a38f commit b217d70
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/plugins/unified_histogram/public/chart/chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,6 @@ export function Chart({
}
}, [chartVisible, isFlyoutVisible]);

useEffect(() => {
return () => {
// Close the flyout while unmounting
if (isFlyoutVisible) {
setIsFlyoutVisible(false);
}
};
}, [isFlyoutVisible]);

const onEditVisualization = useEditVisualization({
services,
dataView,
Expand Down

0 comments on commit b217d70

Please sign in to comment.