mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-17 08:55:58 +08:00
fix: list filter first name
This commit is contained in:
parent
23abccd3a6
commit
d239c5b54d
@ -81,7 +81,7 @@ const useConfig = (id: string, payload: ListFilterNodeType) => {
|
|||||||
draft.var_type = varType
|
draft.var_type = varType
|
||||||
draft.item_var_type = itemVarType
|
draft.item_var_type = itemVarType
|
||||||
draft.filter_by = [{
|
draft.filter_by = [{
|
||||||
key: (isFileArray && !draft.filter_by[0].key) ? 'name' : '',
|
key: (isFileArray && !draft.filter_by[0]?.key) ? 'name' : '',
|
||||||
comparison_operator: getOperators(itemVarType, isFileArray ? { key: 'name' } : undefined)[0],
|
comparison_operator: getOperators(itemVarType, isFileArray ? { key: 'name' } : undefined)[0],
|
||||||
value: '',
|
value: '',
|
||||||
}]
|
}]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user