Browse Source

clean code

Shun Miyazawa 11 months ago
parent
commit
9a21a0111f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/app/src/features/openai/client/services/editor-assistant.tsx

+ 1 - 1
apps/app/src/features/openai/client/services/editor-assistant.tsx

@@ -227,8 +227,8 @@ export const useEditorAssistant: UseEditorAssistant = () => {
     };
 
     handleIfSuccessfullyParsed(data, SseMessageSchema, (data: SseMessage) => {
-      handler.onMessage(data);
       handleDataReceived();
+      handler.onMessage(data);
     });
     handleIfSuccessfullyParsed(data, SseDetectedDiffSchema, (data: SseDetectedDiff) => {
       handleDataReceived();