Ver código fonte

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

Daniel 1 ano atrás
pai
commit
c8f6e3ed76
1 arquivos alterados com 4 adições e 2 exclusões
  1. 4 2
      kernel/av/table.go

+ 4 - 2
kernel/av/table.go

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