mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 18:08:07 +08:00
datasource page
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user