Parcourir la source

fix refresh bug

Arsekl il y a 3 ans
Parent
commit
59a4b6b508
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/extensions/init.tsx

+ 2 - 2
src/extensions/init.tsx

@@ -156,7 +156,7 @@ function initExplorer() {
             groups?.forEach((group) => {
                 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(() => {
@@ -245,4 +245,4 @@ function initLogin() {
                 }
             ]
     );
-}
+}