select default options for each sections

This commit is contained in:
Krrish Ghimire
2026-07-22 19:16:13 +05:45
parent d279503dd7
commit 1ad839a013

View File

@@ -232,12 +232,9 @@ export class SectionConfiguratorComponent implements OnInit {
slug: s.slug, slug: s.slug,
selected: true, selected: true,
customNotes: '', customNotes: '',
selectedPattern: s.patterns?.length ? null : null, selectedPattern: s.patterns?.length ? s.patterns[0].title : null,
customPatternDesc: '', customPatternDesc: '',
})); }));
if (this.currentSection && this.currentSectionPatterns.length > 0) {
this.currentSection.selectedPattern = this.currentSectionPatterns[0].title;
}
} }
get currentSection(): SelectedSection | null { get currentSection(): SelectedSection | null {