From 0c87ff783ac00ad0ac4f7544ff4d910cd2d105b7 Mon Sep 17 00:00:00 2001 From: EugeneTorap Date: Wed, 31 Aug 2022 16:46:48 +0300 Subject: [PATCH] fix: Table content disappears when switching between tabs (#21251) --- superset-frontend/src/components/FilterableTable/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/superset-frontend/src/components/FilterableTable/index.tsx b/superset-frontend/src/components/FilterableTable/index.tsx index 2a56bd7dca16..8324e93b902b 100644 --- a/superset-frontend/src/components/FilterableTable/index.tsx +++ b/superset-frontend/src/components/FilterableTable/index.tsx @@ -563,6 +563,7 @@ const FilterableTable = ({ }; const renderGrid = () => { + totalTableHeight.current = height; if ( container.current && totalTableWidth.current > container.current.clientWidth @@ -643,6 +644,7 @@ const FilterableTable = ({ ); } + totalTableHeight.current = height; if ( container.current && totalTableWidth.current > container.current.clientWidth