Chore/cleanup warnings (#17974)
This commit is contained in:
parent
f84832e0c2
commit
8f9cbe1c49
69 changed files with 89 additions and 117 deletions
|
|
@ -71,7 +71,7 @@ const ConditionValue = ({
|
|||
: ''
|
||||
}
|
||||
return ''
|
||||
}, [])
|
||||
}, [t])
|
||||
|
||||
return (
|
||||
<div className='rounded-md bg-workflow-block-parma-bg'>
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ const ConditionItem = ({
|
|||
value: isArrayValue ? [value] : value,
|
||||
}
|
||||
doUpdateCondition(newCondition)
|
||||
}, [condition, doUpdateCondition, fileAttr])
|
||||
}, [condition, doUpdateCondition, isArrayValue])
|
||||
|
||||
const isSelect = condition.comparison_operator && [ComparisonOperator.in, ComparisonOperator.notIn].includes(condition.comparison_operator)
|
||||
const selectOptions = useMemo(() => {
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ const useConfig = (id: string, payload: IfElseNodeType) => {
|
|||
})
|
||||
setInputs(newInputs)
|
||||
updateNodeInternals(id)
|
||||
}, [inputs, setInputs])
|
||||
}, [id, inputs, setInputs, updateNodeInternals])
|
||||
|
||||
const handleAddCondition = useCallback<HandleAddCondition>((caseId, valueSelector, varItem) => {
|
||||
const newInputs = produce(inputs, (draft) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue