소스 검색

chore: generate

GitHub Action 10 달 전
부모
커밋
64f0205f97
2개의 변경된 파일과 6개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      packages/app/src/components/dialog-select-server.tsx
  2. 5 4
      packages/ui/src/hooks/use-filtered-list.tsx

+ 1 - 1
packages/app/src/components/dialog-select-server.tsx

@@ -118,7 +118,7 @@ export function DialogSelectServer() {
   }
 
   async function handleRemove(url: string) {
-      server.remove(url)
+    server.remove(url)
   }
 
   return (

+ 5 - 4
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,