Skip to content

Commit

Permalink
Fix canSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrunyon committed May 28, 2024
1 parent 7eba5d4 commit 571ce28
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions plugins/ui/src/js/src/elements/UITable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,18 @@ function UITable({
]
);

const irisGridProps: Partial<IrisGridProps> = useMemo(
() => ({
mouseHandlers,
alwaysFetchColumns,
showSearchBar,
canSearch,
sorts: hydratedSorts,
quickFilters: hydratedQuickFilters,
isFilterBarShown: showQuickFilters,
settings,
}),
const irisGridProps = useMemo(
() =>
({
mouseHandlers,
alwaysFetchColumns,
showSearchBar: canSearch && showSearchBar,
canToggleSearch: canSearch,
sorts: hydratedSorts,
quickFilters: hydratedQuickFilters,
isFilterBarShown: showQuickFilters,
settings,
}) satisfies Partial<IrisGridProps>,
[
mouseHandlers,
alwaysFetchColumns,
Expand Down

0 comments on commit 571ce28

Please sign in to comment.