chore: fix function name typo (#23306)
This commit is contained in:
parent
58608f51da
commit
99a4bd82b5
8 changed files with 15 additions and 15 deletions
|
|
@ -10,7 +10,7 @@ import type {
|
|||
LoopVariable,
|
||||
LoopVariablesComponentShape,
|
||||
} from '@/app/components/workflow/nodes/loop/types'
|
||||
import { checkKeys, replaceSpaceWithUnderscreInVarNameInput } from '@/utils/var'
|
||||
import { checkKeys, replaceSpaceWithUnderscoreInVarNameInput } from '@/utils/var'
|
||||
import Toast from '@/app/components/base/toast'
|
||||
|
||||
type ItemProps = {
|
||||
|
|
@ -36,7 +36,7 @@ const Item = ({
|
|||
return true
|
||||
}
|
||||
const handleUpdateItemLabel = useCallback((e: any) => {
|
||||
replaceSpaceWithUnderscreInVarNameInput(e.target)
|
||||
replaceSpaceWithUnderscoreInVarNameInput(e.target)
|
||||
if (!!e.target.value && !checkVariableName(e.target.value))
|
||||
return
|
||||
handleUpdateLoopVariable(item.id, { label: e.target.value })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue