Skip to content

Commit

Permalink
fix: delete workflow editor params when change workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Vieira Marcelino committed Jun 4, 2024
1 parent c2054f3 commit f8325b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/context/workspaces/workspaces.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ export const WorkspacesProvider: FC<IWorkspacesProviderProps> = ({
// setWorkspace(next)
// localStorage.setItem('workspace', JSON.stringify(next))
handleUpdateWorkspace(next);
localStorage.removeItem("workflowEdges");
localStorage.removeItem("workflowNodes");
localStorage.removeItem("workflowPieces");
localStorage.removeItem("workflowPiecesData");
localStorage.removeItem("workflowSettingsData");
},
[workspaces, handleUpdateWorkspace],
);
Expand Down

0 comments on commit f8325b6

Please sign in to comment.