diff options
| author | GitHub Action <[email protected]> | 2026-01-12 21:27:36 +0000 |
|---|---|---|
| committer | GitHub Action <[email protected]> | 2026-01-12 21:27:36 +0000 |
| commit | 64f0205f97dee21a00a654013454055fedd1a824 (patch) | |
| tree | fcfc339a1be3e0596cb523b81f6a60d12d10bb36 /packages/ui/src/hooks | |
| parent | b3a1360ad9d29811e672ba714dd006ee732d5a7b (diff) | |
| download | opencode-64f0205f97dee21a00a654013454055fedd1a824.tar.gz opencode-64f0205f97dee21a00a654013454055fedd1a824.zip | |
chore: generate
Diffstat (limited to 'packages/ui/src/hooks')
| -rw-r--r-- | packages/ui/src/hooks/use-filtered-list.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/ui/src/hooks/use-filtered-list.tsx b/packages/ui/src/hooks/use-filtered-list.tsx index 11bc35548..b6bd7d5c6 100644 --- a/packages/ui/src/hooks/use-filtered-list.tsx +++ b/packages/ui/src/hooks/use-filtered-list.tsx @@ -24,10 +24,11 @@ export function useFilteredList<T>(props: FilteredListProps<T>) { const [grouped, { refetch }] = createResource( () => { // When items is a function (not async filter function), call it to track changes - const itemsValue = typeof props.items === "function" - ? (props.items as () => T[])() // Call synchronous function to track it - : props.items - + const itemsValue = + typeof props.items === "function" + ? (props.items as () => T[])() // Call synchronous function to track it + : props.items + return { filter: store.filter, items: itemsValue, |
