From de7c5824cbec48fad259704f846f27d93b5636e6 Mon Sep 17 00:00:00 2001 From: Shailesh Parmar Date: Fri, 18 Aug 2023 10:53:43 +0530 Subject: [PATCH] ui: fixed multiple API call in table profiler tab (#12706) --- .../ui/src/components/TableProfiler/TableProfilerV1.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/TableProfiler/TableProfilerV1.tsx b/openmetadata-ui/src/main/resources/ui/src/components/TableProfiler/TableProfilerV1.tsx index 1b2c9623445..17b46b7a4e7 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/TableProfiler/TableProfilerV1.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/TableProfiler/TableProfilerV1.tsx @@ -137,7 +137,7 @@ const TableProfilerV1: FC = ({ const [selectedTestCaseStatus, setSelectedTestCaseStatus] = useState(''); const [selectedTestType, setSelectedTestType] = useState(''); - const [isLoading, setIsLoading] = useState(false); + const [isLoading, setIsLoading] = useState(true); const [dateRangeObject, setDateRangeObject] = useState(DEFAULT_RANGE_DATA); @@ -501,6 +501,8 @@ const TableProfilerV1: FC = ({ if (fetchProfiler) { fetchLatestProfilerData(); + } else { + setIsLoading(false); } if (isTourOpen) { setTable(mockDatasetData.tableDetails as unknown as Table);