Parcourir la source

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

Daniel il y a 1 an
Parent
commit
77ce08d044
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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