fix: animation of building edges on build stop (#3937)

fix: remove animation of builidng edges on build stop
This commit is contained in:
anovazzi1 2024-09-27 11:44:27 -03:00 committed by GitHub
commit f906059a72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -82,6 +82,10 @@ const useFlowStore = create<FlowStoreType>((set, get) => ({
isBuilding: false,
stopBuilding: () => {
get().buildController.abort();
get().updateEdgesRunningByNodes(
get().nodes.map((n) => n.id),
false,
);
set({ isBuilding: false });
},
isPending: true,