diff --git a/src/frontend/src/stores/flowStore.ts b/src/frontend/src/stores/flowStore.ts index dac285ddf..babb053e6 100644 --- a/src/frontend/src/stores/flowStore.ts +++ b/src/frontend/src/stores/flowStore.ts @@ -416,7 +416,6 @@ const useFlowStore = create((set, get) => ({ useFlowStore.getState().updateBuildStatus(idList, BuildStatus.BUILDING); }, }); - get().revertAllVerticesToBuild(); }, getFlow: () => { return { @@ -429,17 +428,7 @@ const useFlowStore = create((set, get) => ({ set({ verticesBuild: vertices }); }, verticesBuild: [], - revertAllVerticesToBuild: () => { - // set all vertices to TO_BUILD - let verticesIds: string[] = []; - Object.keys(get().buildStatus).forEach((id) => { - if (get().buildStatus[id] !== BuildStatus.TO_BUILD) { - verticesIds.push(id); - } - }); - get().updateBuildStatus(verticesIds, BuildStatus.TO_BUILD); - // additional code logic here - }, + removeFromVerticesBuild: (vertices: string[]) => { set({ verticesBuild: get().verticesBuild.filter( diff --git a/src/frontend/src/types/zustand/flow/index.ts b/src/frontend/src/types/zustand/flow/index.ts index 2fc987de6..93995fd7c 100644 --- a/src/frontend/src/types/zustand/flow/index.ts +++ b/src/frontend/src/types/zustand/flow/index.ts @@ -88,7 +88,6 @@ export type FlowStoreType = { getFlow: () => { nodes: Node[]; edges: Edge[]; viewport: Viewport }; updateVerticesBuild: (vertices: string[]) => void; removeFromVerticesBuild: (vertices: string[]) => void; - revertAllVerticesToBuild: () => void; verticesBuild: string[]; updateBuildStatus: (nodeId: string[], status: BuildStatus) => void; buildStatus: { [key: string]: BuildStatus };