From ae3888ced83d739d501b68f7412ad7b9bd3f8f52 Mon Sep 17 00:00:00 2001 From: Francis Cao Date: Tue, 13 Aug 2024 09:21:20 -0700 Subject: [PATCH] fix loading spinner / no results bug --- src/components/common/DataTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/common/DataTable.tsx b/src/components/common/DataTable.tsx index 775e123c..c3bab88f 100644 --- a/src/components/common/DataTable.tsx +++ b/src/components/common/DataTable.tsx @@ -68,7 +68,7 @@ export function DataTable({ {hasData ? (typeof children === 'function' ? children(result) : children) : null} {isLoading && } {!isLoading && !hasData && !query && } - {noResults && } + {!isLoading && noResults && } {allowPaging && hasData && (