Import indicators: On save remove null sections.

This commit is contained in:
Konstantinos Triantafyllou 2023-07-10 15:25:06 +03:00
parent b543196a88
commit 558a9fbde2
1 changed files with 1 additions and 1 deletions

View File

@ -1322,7 +1322,7 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV
this.editing = false;
this.importLoading = false;
} else if (sectionsToSave.length > 0 && countIndicators > 0) {
this.saveIndicators(sectionsToSave)
this.saveIndicators(sectionsToSave.filter(section => !!section));
}
if (sectionsToSave.length == 0 || countIndicators == 0) {
UIkit.notification(" No urls imported!", {