Skip to content

Commit

Permalink
adds useMemo
Browse files Browse the repository at this point in the history
Co-authored-by: JUST.in DO IT <[email protected]>
  • Loading branch information
EnxDev and justinpark authored Dec 3, 2024
1 parent b38a13f commit f4022e6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ export default function AdhocFilterEditPopoverSqlTabContent({
),
), [sqlKeywords]);

const selectOptions = Object.values(Clauses).map(clause => ({
const selectOptions = useMemo(() => Object.values(Clauses).map(clause => ({
label: clause,
value: clause,
}));
})), [Clauses]);

return (
<span>
Expand Down

0 comments on commit f4022e6

Please sign in to comment.