diff --git a/packages/features/insights/components/RoutingFormResponsesTable.tsx b/packages/features/insights/components/RoutingFormResponsesTable.tsx index 866cb5ee98..1ae3f12a09 100644 --- a/packages/features/insights/components/RoutingFormResponsesTable.tsx +++ b/packages/features/insights/components/RoutingFormResponsesTable.tsx @@ -252,7 +252,7 @@ export function RoutingFormResponsesTable({ } ); - const { data, fetchNextPage, isFetching, hasNextPage } = + const { data, fetchNextPage, isFetching, hasNextPage, isLoading } = trpc.viewer.insights.routingFormResponses.useInfiniteQuery( { teamId: selectedTeamId, @@ -403,10 +403,10 @@ export function RoutingFormResponsesTable({ totalDBRowCount ); - if (isHeadersLoading || (isFetching && !data)) { + if (isHeadersLoading || ((isFetching || isLoading) && !data)) { return (