From 68c6bffa2c5f9311408dc7315dfa6fe5653247fd Mon Sep 17 00:00:00 2001 From: reesporte Date: Fri, 14 Jan 2022 13:02:01 -0600 Subject: [PATCH 1/2] clear localstorage on sign out --- lattice/src/App/AuthFlow/SignOutButton.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/lattice/src/App/AuthFlow/SignOutButton.tsx b/lattice/src/App/AuthFlow/SignOutButton.tsx index 3e76c22db..ff6b5e6ba 100644 --- a/lattice/src/App/AuthFlow/SignOutButton.tsx +++ b/lattice/src/App/AuthFlow/SignOutButton.tsx @@ -7,6 +7,7 @@ interface Props { const SignOutButton: React.FC = ({ children }) => { const signoutOnClick = (e) => { + localStorage.clear(); window.location.href = '/logout'; }; From c969a8370e1f6d043786b2a30961e7fce72b1976 Mon Sep 17 00:00:00 2001 From: Hoang Pham Date: Tue, 18 Jan 2022 17:57:40 -0600 Subject: [PATCH 2/2] UI - added fix for Query Builder page showing up as blank when there are no tables associated with current user --- lattice/src/App/QueryBuilder/QueryBuilderContainer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lattice/src/App/QueryBuilder/QueryBuilderContainer.tsx b/lattice/src/App/QueryBuilder/QueryBuilderContainer.tsx index da27904de..3f7afb292 100644 --- a/lattice/src/App/QueryBuilder/QueryBuilderContainer.tsx +++ b/lattice/src/App/QueryBuilder/QueryBuilderContainer.tsx @@ -196,7 +196,8 @@ export const QueryBuilderContainer = () => { return ( - {tables.length > 0 ? ( + {/* check if tables is not null AND tables.length > 0 */} + {(tables && tables.length > 0) ? (