From 76a52c0a766765e869b8d2a77ce9ac3bf9cf7128 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 4 Mar 2024 19:19:44 -0300 Subject: [PATCH] Remove unnecessary code and delay in flowsManagerStore --- src/frontend/src/stores/flowStore.ts | 4 +--- src/frontend/src/stores/flowsManagerStore.ts | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/frontend/src/stores/flowStore.ts b/src/frontend/src/stores/flowStore.ts index 48431e069..cbf183289 100644 --- a/src/frontend/src/stores/flowStore.ts +++ b/src/frontend/src/stores/flowStore.ts @@ -453,9 +453,7 @@ const useFlowStore = create((set, get) => ({ if (vertexBuildData && vertexBuildData.inactivated_vertices) { get().removeFromVerticesBuild(vertexBuildData.inactivated_vertices); } - if (vertexBuildData && vertexBuildData.activated_layers) { - get().addToVerticesBuild(vertexBuildData.activated_layers.flat()); - } + if (vertexBuildData.next_vertices_ids) { // next_vertices_ids is a list of vertices that are going to be built next // verticesLayers is a list of list of vertices ids, where each list is a layer of vertices diff --git a/src/frontend/src/stores/flowsManagerStore.ts b/src/frontend/src/stores/flowsManagerStore.ts index 49849ba54..fac806c5f 100644 --- a/src/frontend/src/stores/flowsManagerStore.ts +++ b/src/frontend/src/stores/flowsManagerStore.ts @@ -92,7 +92,6 @@ const useFlowsManagerStore = create((set, get) => ({ true ); } - set({ saveLoading: true }); }, 500); // Delay of 500ms because chat message depends on it. }, saveFlow: (flow: FlowType, silent?: boolean) => {