check completed when changing level

This commit is contained in:
Alexander Bentkamp
2022-12-15 14:02:24 +01:00
parent bbfb6f8f5e
commit 340700aba4
+1
View File
@@ -68,6 +68,7 @@ function Infoview({ editor, editorApi, leanClient } : {editor: monaco.editor.ISt
useEffect(() => {
if (editor) {
fetchInteractiveGoals()
checkCompleted()
const t = editor.onDidChangeModel((ev) => {
if (ev.newModelUrl) {
setRpcSession(undefined)