Skip to content

Commit

Permalink
lint-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mono424 committed Sep 15, 2023
1 parent 0da5f03 commit 6a181d2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions web/ts/edit-course.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 6a181d2

Please sign in to comment.