Skip to content

Commit

Permalink
reenable page reload on create
Browse files Browse the repository at this point in the history
  • Loading branch information
mono424 committed Sep 14, 2023
1 parent 859555c commit d375cf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/ts/edit-course.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d375cf7

Please sign in to comment.