Compare commits

..

No commits in common. "eda508a65c081ea22d198fad4d896809e97ca9a1" and "bfaa8f8a5320994e4d275a3e1ddbedf4d09e679d" have entirely different histories.

1 changed files with 2 additions and 4 deletions

View File

@ -1131,14 +1131,12 @@ export class DescriptionEditorComponent extends BaseEditor<DescriptionEditorMode
getNestedSectionIdsByField(section: DescriptionTemplateSection, fieldSetId: string): string[] {
if (section.sections) {
const subNestedSectionIds: string[] = section.sections.flatMap((subsection: DescriptionTemplateSection) => this.getNestedSectionIdsByField(subsection, fieldSetId))
if (subNestedSectionIds.length > 0) return [section.id, ...subNestedSectionIds];
// return [section.id, ...section.sections.flatMap((subsection: DescriptionTemplateSection) => this.getNestedSectionIdsByField(subsection, fieldSetId))];
return [section.id, ...section.sections.flatMap((subsection: DescriptionTemplateSection) => this.getNestedSectionIdsByField(subsection, fieldSetId))];
}
else if (section.fieldSets.find(fieldSet => fieldSet.id == fieldSetId)) return [section.id];
return [];
else return [];
}
// // this._listenersSubscription.add(dmpSubscription);