feat: workflow if-else support elif (#6072)
This commit is contained in:
parent
a62325ac87
commit
ebba124c5c
25 changed files with 1215 additions and 492 deletions
|
|
@ -21,6 +21,7 @@ import ReactFlow, {
|
|||
useNodesState,
|
||||
useOnViewportChange,
|
||||
useReactFlow,
|
||||
useStoreApi,
|
||||
} from 'reactflow'
|
||||
import type {
|
||||
Viewport,
|
||||
|
|
@ -278,6 +279,15 @@ const Workflow: FC<WorkflowProps> = memo(({
|
|||
{ exactMatch: true, useCapture: true },
|
||||
)
|
||||
|
||||
const store = useStoreApi()
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
store.getState().onError = (code, message) => {
|
||||
if (code === '002')
|
||||
return
|
||||
console.warn(message)
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
id='workflow-container'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue