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 { ToastContext } from '@/app/components/base/toast'
|
|||
import { useStore } from '@/app/components/workflow/store'
|
||||
import type { EnvironmentVariable } from '@/app/components/workflow/types'
|
||||
import cn from '@/utils/classnames'
|
||||
import { checkKeys, replaceSpaceWithUnderscreInVarNameInput } from '@/utils/var'
|
||||
import { checkKeys, replaceSpaceWithUnderscoreInVarNameInput } from '@/utils/var'
|
||||
|
||||
export type ModalPropsType = {
|
||||
env?: EnvironmentVariable
|
||||
|
|
@ -44,7 +44,7 @@ const VariableModal = ({
|
|||
}
|
||||
|
||||
const handleVarNameChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
replaceSpaceWithUnderscreInVarNameInput(e.target)
|
||||
replaceSpaceWithUnderscoreInVarNameInput(e.target)
|
||||
if (!!e.target.value && !checkVariableName(e.target.value))
|
||||
return
|
||||
setName(e.target.value || '')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue