fix: list operation boolean default

This commit is contained in:
Joel 2025-08-01 17:32:09 +08:00
parent 2bd096b454
commit 72c6195c10
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ const useConfig = (id: string, payload: ListFilterNodeType) => {
draft.filter_by.conditions = [{
key: (isFileArray && !draft.filter_by.conditions[0]?.key) ? 'name' : '',
comparison_operator: getOperators(itemVarType, isFileArray ? { key: 'name' } : undefined)[0],
value: '',
value: itemVarType === VarType.boolean ? false : '',
}]
if (isFileArray && draft.order_by.enabled && !draft.order_by.key)
draft.order_by.key = 'name'