Jelajahi Sumber

fix refresh bug

Arsekl 3 tahun lalu
induk
melakukan
59a4b6b508
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      src/extensions/init.tsx

+ 2 - 2
src/extensions/init.tsx

@@ -156,7 +156,7 @@ function initExplorer() {
             groups?.forEach((group) => {
             groups?.forEach((group) => {
                 molecule.editor.closeAll(group.id)
                 molecule.editor.closeAll(group.id)
             })
             })
-            getQuestion(store.getState().loadQuestion.examId as unknown as string, store.getState().loadQuestion.codeList![0].questionId as unknown as string)
+            getQuestion(store.getState().loadQuestion.examId as unknown as string, "");
         }
         }
     })
     })
     molecule.explorer.onCollapseAllFolders(() => {
     molecule.explorer.onCollapseAllFolders(() => {
@@ -245,4 +245,4 @@ function initLogin() {
                 }
                 }
             ]
             ]
     );
     );
-}
+}