Skip to content

Commit

Permalink
Reorder logic for filters
Browse files Browse the repository at this point in the history
  • Loading branch information
abecerra committed Jan 29, 2024
1 parent c5a4159 commit 62c98f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/dataTable/DataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const DataTable = ({
}

// the initial fetch is happening, show spinner, don't render the table yet
if (isLoading) {
if (isLoading || isFetching) {
return <LoadingSpinner />;
}

Expand Down Expand Up @@ -138,7 +138,7 @@ const DataTable = ({
if (column.filterable) {
column.filter = customFilter();

// Text filters set column.filterable to true all over
// Text filters set column.filterable to true
if (typeof column.filterable == "boolean") {
column.filterRenderer = (onFilter, column) => (
<DropdownTextFilter
Expand Down

0 comments on commit 62c98f1

Please sign in to comment.