🎨 Improve database date column "Is Empty" filtering https://github.com/siyuan-note/siyuan/issues/9463

This commit is contained in:
Daniel 2023-10-20 23:37:55 +08:00
parent 7874760642
commit c8f6e3ed76
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -653,9 +653,11 @@ func (table *Table) FilterRows() {
operator := table.Filters[j].Operator
if nil == row.Cells[index].Value {
switch operator {
case FilterOperatorIsNotEmpty:
if FilterOperatorIsNotEmpty == operator {
pass = false
} else if FilterOperatorIsEmpty == operator {
pass = true
break
}
if KeyTypeText != row.Cells[index].ValueType {