mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
fix: remove key replicate
This commit is contained in:
@ -47,7 +47,7 @@ const useKeyValueList = (value: string, onChange: (value: string) => void, noFil
|
||||
}] = useBoolean(true)
|
||||
|
||||
return {
|
||||
list: list.length === 0 ? [{ key: '', value: '' }] : list, // no item can not add new item
|
||||
list: list.length === 0 ? [{ id: uniqueId(UNIQUE_ID_PREFIX), key: '', value: '' }] : list, // no item can not add new item
|
||||
setList,
|
||||
addItem,
|
||||
isKeyValueEdit,
|
||||
|
||||
Reference in New Issue
Block a user