Skip to content

Commit

Permalink
fix: closing action edit
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgrittner committed Aug 25, 2024
1 parent 76437a8 commit 43f8663
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions web/src/stores/workflow-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,14 @@ export const useWorkflowStore = create<WorkflowStoreState>((set, get) => ({
closeSettingsSidePanel: () =>
set(
produce((draft) => {
if (draft.detailPageType === "action") {
// we also must make sure that the action node in reactflow is
// unselected.
draft.nodes = draft.nodes.map((node: any) => {
node.selected = false;
return node;
});
}
draft.detailPageType = null;
draft.selectedNodeIdx = null;
}),
Expand Down

0 comments on commit 43f8663

Please sign in to comment.