From d375cf72cb47ead798b039579519893d448ba07f Mon Sep 17 00:00:00 2001 From: Khadim Date: Thu, 14 Sep 2023 17:58:06 +0200 Subject: [PATCH] reenable page reload on create --- web/ts/edit-course.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/ts/edit-course.ts b/web/ts/edit-course.ts index bb53157a2..039559e60 100644 --- a/web/ts/edit-course.ts +++ b/web/ts/edit-course.ts @@ -855,10 +855,10 @@ export function createLectureForm(args: { s: [] }) { postData("/api/course/" + this.courseID + "/createLecture", payload) .then(async (res) => { const { ids } = await res.json(); - /*const url = new URL(window.location.href); + const url = new URL(window.location.href); url.hash = `lectures:${ids.join(",")}`; window.location.assign(url); - window.location.reload();*/ + window.location.reload(); }) .catch((e) => { console.log(e);