refactor & perf: import { noop } from 'lodash-es' across web (#17439)

This commit is contained in:
yusheng chen
2025-04-06 17:56:08 +08:00
committed by GitHub
parent 7016ccef10
commit c05e03fc09
87 changed files with 271 additions and 184 deletions

View File

@@ -13,6 +13,7 @@ import Loading from '@/app/components/base/loading'
import Form from '@/app/components/header/account-setting/model-provider-page/model-modal/Form'
import { LinkExternal02 } from '@/app/components/base/icons/src/vender/line/general'
import { useLanguage } from '@/app/components/header/account-setting/model-provider-page/hooks'
import { noop } from 'lodash-es'
type Props = {
collection: Collection
@@ -28,7 +29,7 @@ const ConfigCredential: FC<Props> = ({
onCancel,
onSaved,
isHideRemoveBtn,
onRemove = () => { },
onRemove = noop,
isSaving,
}) => {
const { t } = useTranslation()