diff --git a/datasette/views/index.py b/datasette/views/index.py index 1a3ed86d..b5d55a21 100644 --- a/datasette/views/index.py +++ b/datasette/views/index.py @@ -57,7 +57,9 @@ class IndexView(RenderMixin): "tables_count": len(tables), "tables_more": len(tables) > 5, "table_rows_sum": sum((t["count"] or 0) for t in tables.values()), - "hidden_table_rows_sum": sum(t["count"] for t in hidden_tables), + "hidden_table_rows_sum": sum( + t["count"] for t in hidden_tables if t["count"] is not None + ), "hidden_tables_count": len(hidden_tables), "views_count": len(views), }