Skip to content

Commit

Permalink
Unset activeWidget and category when the dashboard unloads
Browse files Browse the repository at this point in the history
  • Loading branch information
SARodrigues committed Sep 27, 2023
1 parent 05abedd commit 741d4bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pages/dashboards/[[...location]].js
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,11 @@ const DashboardsPage = (props) => {
if (!ready) {
setReady(true);
}

return () => {
dispatch(setActiveWidget(null));
dispatch(setWidgetsCategory(null));
};
});

return (
Expand Down

0 comments on commit 741d4bd

Please sign in to comment.