ui: fixed multiple API call in table profiler tab (#12706)

This commit is contained in:
Shailesh Parmar 2023-08-18 10:53:43 +05:30 committed by GitHub
parent 524e611edc
commit de7c5824cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,7 +137,7 @@ const TableProfilerV1: FC<TableProfilerProps> = ({
const [selectedTestCaseStatus, setSelectedTestCaseStatus] =
useState<string>('');
const [selectedTestType, setSelectedTestType] = useState('');
const [isLoading, setIsLoading] = useState(false);
const [isLoading, setIsLoading] = useState(true);
const [dateRangeObject, setDateRangeObject] =
useState<DateRangeObject>(DEFAULT_RANGE_DATA);
@ -501,6 +501,8 @@ const TableProfilerV1: FC<TableProfilerProps> = ({
if (fetchProfiler) {
fetchLatestProfilerData();
} else {
setIsLoading(false);
}
if (isTourOpen) {
setTable(mockDatasetData.tableDetails as unknown as Table);