From 558a9fbde219b400423d237a46fe16f6603184dd Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 10 Jul 2023 15:25:06 +0300 Subject: [PATCH] Import indicators: On save remove null sections. --- src/app/topic/indicators.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/topic/indicators.component.ts b/src/app/topic/indicators.component.ts index f359d6e..8a0435d 100644 --- a/src/app/topic/indicators.component.ts +++ b/src/app/topic/indicators.component.ts @@ -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!", {