mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-11 03:46:52 +08:00
refactor & perf: import { noop } from 'lodash-es' across web (#17439)
This commit is contained in:
@@ -14,6 +14,7 @@ import { Tag03 } from '@/app/components/base/icons/src/vender/line/financeAndECo
|
||||
import Checkbox from '@/app/components/base/checkbox'
|
||||
import type { Label } from '@/app/components/tools/labels/constant'
|
||||
import { useTags } from '@/app/components/plugins/hooks'
|
||||
import { noop } from 'lodash-es'
|
||||
|
||||
type LabelSelectorProps = {
|
||||
value: string[]
|
||||
@@ -99,7 +100,7 @@ const LabelSelector: FC<LabelSelectorProps> = ({
|
||||
<Checkbox
|
||||
className='shrink-0'
|
||||
checked={value.includes(label.name)}
|
||||
onCheck={() => { }}
|
||||
onCheck={noop}
|
||||
/>
|
||||
<div title={label.label} className='grow truncate text-sm leading-5 text-text-secondary'>{label.label}</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user