Add setNoticeData to useFlowStore

This commit is contained in:
anovazzi1 2024-02-19 11:43:24 -03:00
commit 2435c8dfa9

View file

@ -355,6 +355,7 @@ const useFlowStore = create<FlowStoreType>((set, get) => ({
const currentFlow = useFlowsManagerStore.getState().currentFlow;
const setSuccessData = useAlertStore.getState().setSuccessData;
const setErrorData = useAlertStore.getState().setErrorData;
const setNoticeData = useAlertStore.getState().setNoticeData;
function handleBuildUpdate(data: any) {
get().addDataToFlowPool(data.data[data.id], data.id);
}
@ -368,6 +369,7 @@ const useFlowStore = create<FlowStoreType>((set, get) => ({
name: currentFlow!.name,
description: currentFlow!.description,
});
setNoticeData({ title: "Running components" });
return buildVertices({
flowId: currentFlow!.id,
nodeId,