Przeglądaj źródła

rm arg from openEditor utils

Shun Miyazawa 1 rok temu
rodzic
commit
d4582c737d

+ 3 - 5
apps/app/src/features/openai/client/stores/ai-assistant.tsx

@@ -70,9 +70,7 @@ type AiAssistantSidebarUtils = {
     aiAssistantData: AiAssistantHasId,
     aiAssistantData: AiAssistantHasId,
     threadData?: IThreadRelationHasId,
     threadData?: IThreadRelationHasId,
   ): void
   ): void
-  openEditor(
-    aiAssistantData?: AiAssistantHasId,
-  ): void
+  openEditor(): void
   close(): void
   close(): void
 }
 }
 
 
@@ -90,8 +88,8 @@ export const useAiAssistantSidebar = (
       }, [swrResponse],
       }, [swrResponse],
     ),
     ),
     openEditor: useCallback(
     openEditor: useCallback(
-      (aiAssistantData: AiAssistantHasId) => {
-        swrResponse.mutate({ isOpened: true, isEditorAssistant: true, aiAssistantData });
+      () => {
+        swrResponse.mutate({ isOpened: true, isEditorAssistant: true });
       }, [swrResponse],
       }, [swrResponse],
     ),
     ),
     close: useCallback(() => swrResponse.mutate({ isOpened: false }), [swrResponse]),
     close: useCallback(() => swrResponse.mutate({ isOpened: false }), [swrResponse]),