Remove unnecessary code and delay in flowsManagerStore
This commit is contained in:
parent
481df3de8f
commit
76a52c0a76
2 changed files with 1 additions and 4 deletions
|
|
@ -453,9 +453,7 @@ const useFlowStore = create<FlowStoreType>((set, get) => ({
|
||||||
if (vertexBuildData && vertexBuildData.inactivated_vertices) {
|
if (vertexBuildData && vertexBuildData.inactivated_vertices) {
|
||||||
get().removeFromVerticesBuild(vertexBuildData.inactivated_vertices);
|
get().removeFromVerticesBuild(vertexBuildData.inactivated_vertices);
|
||||||
}
|
}
|
||||||
if (vertexBuildData && vertexBuildData.activated_layers) {
|
|
||||||
get().addToVerticesBuild(vertexBuildData.activated_layers.flat());
|
|
||||||
}
|
|
||||||
if (vertexBuildData.next_vertices_ids) {
|
if (vertexBuildData.next_vertices_ids) {
|
||||||
// next_vertices_ids is a list of vertices that are going to be built next
|
// 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
|
// verticesLayers is a list of list of vertices ids, where each list is a layer of vertices
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,6 @@ const useFlowsManagerStore = create<FlowsManagerStoreType>((set, get) => ({
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
set({ saveLoading: true });
|
|
||||||
}, 500); // Delay of 500ms because chat message depends on it.
|
}, 500); // Delay of 500ms because chat message depends on it.
|
||||||
},
|
},
|
||||||
saveFlow: (flow: FlowType, silent?: boolean) => {
|
saveFlow: (flow: FlowType, silent?: boolean) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue