Import indicators: On save remove null sections.
This commit is contained in:
parent
b543196a88
commit
558a9fbde2
|
@ -1322,7 +1322,7 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV
|
||||||
this.editing = false;
|
this.editing = false;
|
||||||
this.importLoading = false;
|
this.importLoading = false;
|
||||||
} else if (sectionsToSave.length > 0 && countIndicators > 0) {
|
} else if (sectionsToSave.length > 0 && countIndicators > 0) {
|
||||||
this.saveIndicators(sectionsToSave)
|
this.saveIndicators(sectionsToSave.filter(section => !!section));
|
||||||
}
|
}
|
||||||
if (sectionsToSave.length == 0 || countIndicators == 0) {
|
if (sectionsToSave.length == 0 || countIndicators == 0) {
|
||||||
UIkit.notification(" No urls imported!", {
|
UIkit.notification(" No urls imported!", {
|
||||||
|
|
Loading…
Reference in New Issue