From 6a181d2f5b884bfc7a76aca6de0fdf9e9ae11096 Mon Sep 17 00:00:00 2001 From: Khadim Date: Fri, 15 Sep 2023 20:39:03 +0200 Subject: [PATCH] lint-fix --- web/ts/edit-course.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/web/ts/edit-course.ts b/web/ts/edit-course.ts index a85276d95..c517000c6 100644 --- a/web/ts/edit-course.ts +++ b/web/ts/edit-course.ts @@ -255,17 +255,16 @@ export function lectureEditor(lecture: Lecture): AlpineComponent { deleteSection(section) { const sectionKey = this.getSectionKey(section); - this.changeSet.patch( - "videoSections", - [...this.lectureData.videoSections.filter((s) => sectionKey !== this.getSectionKey(s))], - ); + this.changeSet.patch("videoSections", [ + ...this.lectureData.videoSections.filter((s) => sectionKey !== this.getSectionKey(s)), + ]); }, isValidVideoSection(section: VideoSection): boolean { const sectionKey = this.getSectionKey(section); const hasValidTime = !this.lectureData.videoSections.some( - (s) => videoSectionTimestamp(s) == videoSectionTimestamp(section) && - sectionKey != this.getSectionKey(s) + (s) => + videoSectionTimestamp(s) == videoSectionTimestamp(section) && sectionKey != this.getSectionKey(s), ); return (