Przeglądaj źródła

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

Daniel 1 rok temu
rodzic
commit
77ce08d044
1 zmienionych plików z 3 dodań i 0 usunięć
  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
 			table.Rows = rows
+			if 1 > len(table.Rows) {
+				table.Rows = []*av.TableRow{}
+			}
 		}
 		}
 	}
 	}
 	return
 	return