select default options for each sections
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user