Skip to content

Commit

Permalink
remove console.log, fix jsdoc type
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleogenesis authored and vkWeb committed Oct 19, 2023
1 parent a8b8a4e commit 013e53b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ export default () => {
throw new Error(`Section with id ${section_id} not found; cannot be removed.`);
}
if (updatedSections.length === 0) {
console.log('Deleting last section...');
const newSection = addSection();
setActiveSection(newSection.section_id);
} else {
Expand Down Expand Up @@ -247,7 +246,7 @@ export default () => {
const activeSection = computed(() =>
get(allSections).find(s => s.section_id === get(_activeSectionId))
);
/** @type {Arrayc<ComputedRef<QuizSection>>} The inactive sections */
/** @type {ComputedRef<QuizSection[]>} The inactive sections */
const inactiveSections = computed(() =>
get(allSections).filter(s => s.section_id !== get(_activeSectionId))
);
Expand Down

0 comments on commit 013e53b

Please sign in to comment.