datasource page

This commit is contained in:
zxhlyh
2025-06-30 16:16:16 +08:00
parent ada632f9f5
commit 1f5c32525f
6 changed files with 79 additions and 15 deletions

View File

@ -28,6 +28,7 @@ export const useNodesSyncDraft = () => {
edges,
transform,
} = store.getState()
const nodes = getNodes()
const [x, y, zoom] = transform
const {
appId,
@ -36,8 +37,7 @@ export const useNodesSyncDraft = () => {
syncWorkflowDraftHash,
} = workflowStore.getState()
if (appId) {
const nodes = getNodes()
if (appId && !!nodes.length) {
const hasStartNode = nodes.find(node => node.data.type === BlockEnum.Start)
if (!hasStartNode)