diff options
| author | GitHub Action <[email protected]> | 2026-01-13 14:17:35 +0000 |
|---|---|---|
| committer | GitHub Action <[email protected]> | 2026-01-13 14:17:35 +0000 |
| commit | 067338bc256213909c59f5a37118d2f8099ca5f2 (patch) | |
| tree | dcc34a47cbe7fab86608af5a7ebf25edf98898c9 /packages/ui/src/hooks | |
| parent | 736cd10847c4af2e4ef9ba7b9eadd1e6352ff2f9 (diff) | |
| download | opencode-067338bc256213909c59f5a37118d2f8099ca5f2.tar.gz opencode-067338bc256213909c59f5a37118d2f8099ca5f2.zip | |
chore: generate
Diffstat (limited to 'packages/ui/src/hooks')
| -rw-r--r-- | packages/ui/src/hooks/use-filtered-list.tsx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/ui/src/hooks/use-filtered-list.tsx b/packages/ui/src/hooks/use-filtered-list.tsx index e265fffef..26215e93c 100644 --- a/packages/ui/src/hooks/use-filtered-list.tsx +++ b/packages/ui/src/hooks/use-filtered-list.tsx @@ -24,11 +24,12 @@ export function useFilteredList<T>(props: FilteredListProps<T>) { const [grouped, { refetch }] = createResource( () => ({ filter: store.filter, - items: typeof props.items === "function" - ? props.items.length === 0 - ? (props.items as () => T[])() - : undefined - : props.items, + items: + typeof props.items === "function" + ? props.items.length === 0 + ? (props.items as () => T[])() + : undefined + : props.items, }), async ({ filter, items }) => { const needle = filter?.toLowerCase() |
