fix(web): 修复节点入参不更新
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import {Background, BackgroundVariant, type NodeProps} from '@xyflow/react'
|
||||
import {classnames} from 'amis'
|
||||
import React, {useEffect, useMemo} from 'react'
|
||||
import React, {useCallback, useEffect, useMemo} from 'react'
|
||||
import AddNodeButton from '../component/AddNodeButton.tsx'
|
||||
import {useDataStore} from '../store/DataStore.ts'
|
||||
import {flowBackgroundColor, flowDotColor} from '../types.ts'
|
||||
@@ -22,7 +22,7 @@ const LoopNode = (props: NodeProps) => {
|
||||
)
|
||||
}, [props.id])
|
||||
|
||||
const columnsSchema = useMemo(() => [
|
||||
const columnsSchema = useCallback(() => [
|
||||
{
|
||||
type: 'switch',
|
||||
name: 'failFast',
|
||||
|
||||
Reference in New Issue
Block a user