Browse Source

fix swr key

Shun Miyazawa 1 year ago
parent
commit
4fb5e78dda
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/app/src/features/openai/client/stores/thread.tsx

+ 1 - 1
apps/app/src/features/openai/client/stores/thread.tsx

@@ -6,7 +6,7 @@ import { apiv3Get } from '~/client/util/apiv3-client';
 
 
 import type { IThreadRelationHasId } from '../../interfaces/thread-relation';
 import type { IThreadRelationHasId } from '../../interfaces/thread-relation';
 
 
-const getKey = (aiAssistantId: string) => [`openai/threads/${aiAssistantId}`];
+const getKey = (aiAssistantId: string) => [`/openai/threads/${aiAssistantId}`];
 
 
 export const useSWRxThreads = (aiAssistantId: string): SWRResponse<IThreadRelationHasId[], Error> => {
 export const useSWRxThreads = (aiAssistantId: string): SWRResponse<IThreadRelationHasId[], Error> => {
   const key = getKey(aiAssistantId);
   const key = getKey(aiAssistantId);