Chore: Replace lodash/noop with lodash-es/noop (#22331)

This commit is contained in:
HyaCinth
2025-07-14 13:57:26 +08:00
committed by GitHub
parent 1d54ffcf89
commit 8b1f428ead
3 changed files with 5 additions and 5 deletions

View File

@@ -55,7 +55,7 @@ type Props = {
value?: ToolValue
selectedTools?: ToolValue[]
onSelect: (tool: ToolValue) => void
onSelectMultiple: (tool: ToolValue[]) => void
onSelectMultiple?: (tool: ToolValue[]) => void
isEdit?: boolean
onDelete?: () => void
supportEnableSwitch?: boolean
@@ -143,7 +143,7 @@ const ToolSelector: FC<Props> = ({
}
const handleSelectMultipleTool = (tool: ToolDefaultValue[]) => {
const toolValues = tool.map(item => getToolValue(item))
onSelectMultiple(toolValues)
onSelectMultiple?.(toolValues)
}
const handleDescriptionChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {