From 185f328020021ad7949174f2b7ee834a41062289 Mon Sep 17 00:00:00 2001 From: Sidney Alcantara Date: Fri, 11 Feb 2022 17:37:09 +1100 Subject: [PATCH 1/2] fix filters not displaying no results (fixes ROWY-293) --- src/hooks/useTable/useTableData.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/hooks/useTable/useTableData.tsx b/src/hooks/useTable/useTableData.tsx index 602d65b7..e1e2b657 100644 --- a/src/hooks/useTable/useTableData.tsx +++ b/src/hooks/useTable/useTableData.tsx @@ -35,6 +35,7 @@ const rowsReducer = (prevRows: any, update: any) => { switch (update.type) { case "onSnapshot": const snapshotDocs = update.docs; + console.log("onSnapshot", snapshotDocs); // Get rows that may not be part of the snapshot // Rows with missing required fields haven’t been written to the db yet @@ -167,13 +168,14 @@ const useTableData = () => { const unsubscribe = query.limit(limit).onSnapshot( (snapshot) => { - if (snapshot.docs.length > 0) { - rowsDispatch({ - type: "onSnapshot", - docs: snapshot.docs, - // changes: snapshot.docChanges(), - }); - } + console.log("snapshot", snapshot); + // if (snapshot.docs.length > 0) { + rowsDispatch({ + type: "onSnapshot", + docs: snapshot.docs, + // changes: snapshot.docChanges(), + }); + // } tableDispatch({ loading: false }); }, (error: any) => { From 57e6c10c8aaf8022fe5303cae7773fbe77065679 Mon Sep 17 00:00:00 2001 From: Sidney Alcantara Date: Fri, 11 Feb 2022 17:39:09 +1100 Subject: [PATCH 2/2] bump version number --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4ccb2564..8dae7833 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Rowy", - "version": "2.3.1", + "version": "2.3.2", "homepage": "https://rowy.io", "repository": { "type": "git",