Fix cleanFlowPool function not being called in CollectionCardComponent
This commit is contained in:
parent
e22a3300cb
commit
dc71ad261b
2 changed files with 6 additions and 2 deletions
|
|
@ -40,6 +40,7 @@ export default function CollectionCardComponent({
|
||||||
const setSuccessData = useAlertStore((state) => state.setSuccessData);
|
const setSuccessData = useAlertStore((state) => state.setSuccessData);
|
||||||
const setErrorData = useAlertStore((state) => state.setErrorData);
|
const setErrorData = useAlertStore((state) => state.setErrorData);
|
||||||
const setValidApiKey = useStoreStore((state) => state.updateValidApiKey);
|
const setValidApiKey = useStoreStore((state) => state.updateValidApiKey);
|
||||||
|
const cleanFlowPool = useFlowStore((state) => state.CleanFlowPool);
|
||||||
const isStore = false;
|
const isStore = false;
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
const [loadingLike, setLoadingLike] = useState(false);
|
const [loadingLike, setLoadingLike] = useState(false);
|
||||||
|
|
@ -64,6 +65,7 @@ export default function CollectionCardComponent({
|
||||||
if (currentFlowId && playground) {
|
if (currentFlowId && playground) {
|
||||||
setNodes(currentFlow?.data?.nodes ?? [],true);
|
setNodes(currentFlow?.data?.nodes ?? [],true);
|
||||||
setEdges(currentFlow?.data?.edges ?? [],true);
|
setEdges(currentFlow?.data?.edges ?? [],true);
|
||||||
|
cleanFlowPool();
|
||||||
}
|
}
|
||||||
}, [currentFlowId]);
|
}, [currentFlowId]);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -918,10 +918,12 @@ export async function getVerticesOrder(
|
||||||
} else if (startNodeId) {
|
} else if (startNodeId) {
|
||||||
config["params"] = { start_component_id: startNodeId };
|
config["params"] = { start_component_id: startNodeId };
|
||||||
}
|
}
|
||||||
|
const data = {}
|
||||||
if(nodes && Edges){
|
if(nodes && Edges){
|
||||||
config.data = {nodes,Edges}
|
data["nodes"] = nodes
|
||||||
|
data["edges"] = Edges
|
||||||
}
|
}
|
||||||
return await api.get(`${BASE_URL_API}build/${flowId}/vertices`, config);
|
return await api.post(`${BASE_URL_API}build/${flowId}/vertices`,data, config);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function postBuildVertex(
|
export async function postBuildVertex(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue