Skip to content

Commit

Permalink
Fix animal table loading
Browse files Browse the repository at this point in the history
  • Loading branch information
NickPhura committed Aug 9, 2024
1 parent ac11bc6 commit 9ca337c
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,12 @@ export const SurveySpatialAnimalTable = (props: ISurveyDataAnimalTableProps) =>
}
];

console.log(props.isLoading);
console.log(animalsDataLoader.isLoading);
console.log(animalsDataLoader.isReady);

return (
<LoadingGuard
isLoading={props.isLoading || animalsDataLoader.isLoading || !animalsDataLoader.isReady}
isLoading={animals.length > 0 && (props.isLoading || animalsDataLoader.isLoading || !animalsDataLoader.isReady)}
isLoadingFallback={<SkeletonTable />}
isLoadingFallbackDelay={100}
hasNoData={!rows.length}
hasNoData={!animals.length || !rows.length}
hasNoDataFallback={
<NoDataOverlay
height="250px"
Expand Down

0 comments on commit 9ca337c

Please sign in to comment.