- @for (gradientFormGroup of advancedGradientListFormGroups; track trackByGradient($index, gradientFormGroup); let isLast = $last) {
+ @for (gradientFormGroup of advancedGradientListFormGroups; track gradientFormGroup; let isLast = $last) {
diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/gradient.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/gradient.component.ts
index fa97267843..14581d32ef 100644
--- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/gradient.component.ts
+++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/gradient.component.ts
@@ -223,10 +223,6 @@ export class GradientComponent implements OnInit, ControlValueAccessor, OnDestro
return this.advancedGradientListFormArray.controls as FormGroup[];
}
- trackByGradient(index: number, gradientControl: AbstractControl): any {
- return gradientControl;
- }
-
removeGradient(index: number, advanced = false) {
if (advanced) {
this.advancedGradientListFormArray.removeAt(index);
diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/additional-map-data-sources.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/additional-map-data-sources.component.html
index 932f00f12e..4bfcb48297 100644
--- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/additional-map-data-sources.component.html
+++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/additional-map-data-sources.component.html
@@ -24,7 +24,7 @@
@if (dataSourcesFormArray().controls.length) {
- @for (dataSourceControl of dataSourcesFormArray().controls; track trackByDataSource($index, dataSourceControl)) {
+ @for (dataSourceControl of dataSourcesFormArray().controls; track dataSourceControl) {
- @for (dataLayerControl of dataLayersFormArray().controls; track trackByDataLayer($index, dataLayerControl)) {
+ @for (dataLayerControl of dataLayersFormArray().controls; track dataLayerControl) {
diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-data-layers.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-data-layers.component.ts
index b8e1b73115..d5e43b5e00 100644
--- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-data-layers.component.ts
+++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-data-layers.component.ts
@@ -165,10 +165,6 @@ export class MapDataLayersComponent implements ControlValueAccessor, OnInit, Val
return this.dataLayersFormGroup.get('dataLayers') as UntypedFormArray;
}
- trackByDataLayer(index: number, dataLayerControl: AbstractControl): any {
- return dataLayerControl;
- }
-
removeDataLayer(index: number) {
(this.dataLayersFormGroup.get('dataLayers') as UntypedFormArray).removeAt(index);
}
diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-data-sources.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-data-sources.component.html
index 252c7b7f96..0842699e5d 100644
--- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-data-sources.component.html
+++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-data-sources.component.html
@@ -24,7 +24,7 @@
@if (dataSourcesFormArray().controls.length) {
- @for (dataSourceControl of dataSourcesFormArray().controls; track trackByDataSource($index, dataSourceControl)) {
+ @for (dataSourceControl of dataSourcesFormArray().controls; track dataSourceControl) {
- @for (layerControl of layersFormArray().controls; track trackByLayer($index, layerControl)) {
+ @for (layerControl of layersFormArray().controls; track layerControl) {