Browse Source

:art: Database table view in-table search https://github.com/siyuan-note/siyuan/issues/10419

Daniel 1 year ago
parent
commit
77ce08d044
1 changed files with 3 additions and 0 deletions
  1. 3 0
      kernel/model/attribute_view.go

+ 3 - 0
kernel/model/attribute_view.go

@@ -653,6 +653,9 @@ func RenderAttributeView(avID, viewID, query string, page, pageSize int) (viewab
 				}
 			}
 			table.Rows = rows
+			if 1 > len(table.Rows) {
+				table.Rows = []*av.TableRow{}
+			}
 		}
 	}
 	return