Skip to content

Commit

Permalink
slight refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Nov 7, 2024
1 parent 4f0a12e commit b382cbd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/ra-supabase-ui-materialui/src/guessers/ListGuesser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,10 @@ export const ListGuesserView = (
});
});
if (inferredInputsForFilters.length > 0) {
const filterElements = inferredInputsForFilters.map(inferredInput =>
inferredInput.getElement()
);
setFilters(
filterElements.filter(el => el != null) as React.ReactElement[]
);
const filterElements = inferredInputsForFilters
.map(inferredInput => inferredInput.getElement())
.filter(el => el != null) as React.ReactElement[];
setFilters(filterElements);
}

if (!enableLog) return;
Expand Down

0 comments on commit b382cbd

Please sign in to comment.