Refactor useFlowStore to update build status on build start
This commit is contained in:
parent
a6625bbad5
commit
949cc83283
1 changed files with 1 additions and 0 deletions
|
|
@ -539,6 +539,7 @@ const useFlowStore = create<FlowStoreType>((set, get) => ({
|
|||
},
|
||||
onBuildStart: (elementList) => {
|
||||
const idList = elementList
|
||||
// reference is the id of the vertex or the id of the parent in a group node
|
||||
.map((element) => element.reference)
|
||||
.filter(Boolean) as string[];
|
||||
useFlowStore.getState().updateBuildStatus(idList, BuildStatus.BUILDING);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue