chore: fix function name typo (#23306)

This commit is contained in:
Matri Qi
2025-08-03 10:09:26 +08:00
committed by GitHub
parent 58608f51da
commit 99a4bd82b5
8 changed files with 15 additions and 15 deletions

View File

@@ -8,7 +8,7 @@ import RemoveButton from '../remove-button'
import VarTypePicker from './var-type-picker'
import Input from '@/app/components/base/input'
import type { VarType } from '@/app/components/workflow/types'
import { checkKeys, replaceSpaceWithUnderscreInVarNameInput } from '@/utils/var'
import { checkKeys, replaceSpaceWithUnderscoreInVarNameInput } from '@/utils/var'
import type { ToastHandle } from '@/app/components/base/toast'
import Toast from '@/app/components/base/toast'
import { useDebounceFn } from 'ahooks'
@@ -62,7 +62,7 @@ const OutputVarList: FC<Props> = ({
return (e: React.ChangeEvent<HTMLInputElement>) => {
const oldKey = list[index].variable
replaceSpaceWithUnderscreInVarNameInput(e.target)
replaceSpaceWithUnderscoreInVarNameInput(e.target)
const newKey = e.target.value
toastHandler?.clear?.()

View File

@@ -8,7 +8,7 @@ import VarReferencePicker from './var-reference-picker'
import Input from '@/app/components/base/input'
import type { ValueSelector, Var, Variable } from '@/app/components/workflow/types'
import { VarType as VarKindType } from '@/app/components/workflow/nodes/tool/types'
import { checkKeys, replaceSpaceWithUnderscreInVarNameInput } from '@/utils/var'
import { checkKeys, replaceSpaceWithUnderscoreInVarNameInput } from '@/utils/var'
import type { ToastHandle } from '@/app/components/base/toast'
import Toast from '@/app/components/base/toast'
import { ReactSortable } from 'react-sortablejs'
@@ -74,7 +74,7 @@ const VarList: FC<Props> = ({
const handleVarNameChange = useCallback((index: number) => {
return (e: React.ChangeEvent<HTMLInputElement>) => {
replaceSpaceWithUnderscreInVarNameInput(e.target)
replaceSpaceWithUnderscoreInVarNameInput(e.target)
const newKey = e.target.value