diff --git a/latentscope/server/app.py b/latentscope/server/app.py index 8e29a4b..d765e7e 100644 --- a/latentscope/server/app.py +++ b/latentscope/server/app.py @@ -248,7 +248,6 @@ def query(): # only send back the first per_page rows # per_page = 100 # rows_json = rows_json[:per_page] - # print("ROWS JSON", rows_json) # send back the rows as json return jsonify({ diff --git a/web/src/components/FilterDataTable.jsx b/web/src/components/FilterDataTable.jsx index c20e4f7..f8ee845 100644 --- a/web/src/components/FilterDataTable.jsx +++ b/web/src/components/FilterDataTable.jsx @@ -94,7 +94,7 @@ function FilterDataTable({ setPageCount(totalPages); }, [totalPages]); - console.log('==== FILTER DATA TABLE =====', { totalPages }); + console.log('==== FILTER DATA TABLE =====', { indices, page }); const [expandedFeatureRows, setExpandedFeatureRows] = useState(new Set()); diff --git a/web/src/pages/FullScreenExplore.jsx b/web/src/pages/FullScreenExplore.jsx index b710547..bec8aaf 100644 --- a/web/src/pages/FullScreenExplore.jsx +++ b/web/src/pages/FullScreenExplore.jsx @@ -126,20 +126,17 @@ function Explore() { // Update defaultIndices when scopeRows changes useEffect(() => { if (scopeRows?.length) { - const start = page * PER_PAGE; - const end = start + PER_PAGE; const indexes = scopeRows .filter((row) => !deletedIndices.includes(row.ls_index)) - .slice(start, end) .map((row) => row.ls_index); setDefaultIndices(indexes); // get the total number of pages available setPageCount(Math.ceil(scopeRows.length / PER_PAGE)); - console.log('==== PAGE COUNT ====', pageCount); } }, [scopeRows]); + // ==================================================================================================== // Scatterplot related logic // ====================================================================================================