chore: generate

This commit is contained in:
GitHub Action
2026-01-13 14:17:35 +00:00
parent 736cd10847
commit 067338bc25

View File

@@ -24,7 +24,8 @@ export function useFilteredList<T>(props: FilteredListProps<T>) {
const [grouped, { refetch }] = createResource(
() => ({
filter: store.filter,
items: typeof props.items === "function"
items:
typeof props.items === "function"
? props.items.length === 0
? (props.items as () => T[])()
: undefined