Skip to content

Commit

Permalink
fix section deletion issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleogenesis committed Jul 2, 2024
1 parent 4893a79 commit 4ebc1dc
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -572,10 +572,7 @@
}
},
handleConfirmDelete() {
const section_title = displaySectionTitle(
this.activeSection.value,
this.activeSectionIndex.value,
);
const section_title = displaySectionTitle(this.activeSection, this.activeSectionIndex);
const newIndex = this.activeSectionIndex > 0 ? this.activeSectionIndex - 1 : 0;
this.setActiveSection(newIndex);
this.removeSection(this.activeSectionIndex);
Expand Down

0 comments on commit 4ebc1dc

Please sign in to comment.