mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-27 08:44:49 +00:00
ui: fixed multiple API call in table profiler tab (#12706)
This commit is contained in:
parent
524e611edc
commit
de7c5824cb
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user