feat: start support readonly

This commit is contained in:
Joel
2024-03-20 15:09:12 +08:00
parent 1b857eba29
commit 698eb9671f
4 changed files with 7 additions and 5 deletions

View File

@ -383,7 +383,7 @@ export const useNodesReadOnly = () => {
}, [workflowStore])
return {
nodesReadOnly: workflowRunningData || historyWorkflowData || isRestoring,
nodesReadOnly: !!(workflowRunningData || historyWorkflowData || isRestoring),
getNodesReadOnly,
}
}