GitHub Action 1 месяц назад
Родитель
Сommit
067338bc25
1 измененных файлов с 6 добавлено и 5 удалено
  1. 6 5
      packages/ui/src/hooks/use-filtered-list.tsx

+ 6 - 5
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()