Skip to content

Commit

Permalink
invalid first query shows refresh data page
Browse files Browse the repository at this point in the history
Signed-off-by: abbyhu2000 <[email protected]>
  • Loading branch information
abbyhu2000 committed Nov 14, 2024
1 parent 6c9da3b commit e70cf4e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,12 @@ export default function DiscoverCanvas({ setHeaderActionMenu, history, optionalR
<DiscoverUninitialized onRefresh={() => refetch$.next()} />
)}
{fetchState.status === ResultStatus.LOADING && !rows?.length && <LoadingSpinner />}
{fetchState.status === ResultStatus.ERROR && !rows?.length && (
<DiscoverUninitialized onRefresh={() => refetch$.next()} />
)}
{(fetchState.status === ResultStatus.READY ||
(fetchState.status === ResultStatus.LOADING && !!rows?.length) ||
fetchState.status === ResultStatus.ERROR) &&
(fetchState.status === ResultStatus.ERROR && !!rows?.length)) &&
(isEnhancementsEnabled ? (
<>
<MemoizedDiscoverChartContainer {...fetchState} />
Expand Down

0 comments on commit e70cf4e

Please sign in to comment.