Skip to content

Commit 314d66e

Browse files
RenzoPratsMwanPygmayAntoineRelief
authored
fix: aggregation not displaying in grid configurations after changes (#1935)
* fixed aggregation not displaying in grid configurations after be reset * lint fixed --------- Co-authored-by: MwanPygmay <[email protected]> Co-authored-by: Antoine Hurard <[email protected]>
1 parent 0e2e742 commit 314d66e

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

libs/shared/src/lib/components/aggregation/aggregation-table/aggregation-table.component.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, Input, OnChanges, OnInit } from '@angular/core';
1+
import { Component, Input, OnInit } from '@angular/core';
22
import { Layout } from '../../../models/layout.model';
33
import { Form } from '../../../models/form.model';
44
import { Resource } from '../../../models/resource.model';
@@ -21,7 +21,7 @@ import { Dialog } from '@angular/cdk/dialog';
2121
})
2222
export class AggregationTableComponent
2323
extends UnsubscribeComponent
24-
implements OnInit, OnChanges
24+
implements OnInit
2525
{
2626
/** Can select new aggregations or not */
2727
@Input() canAdd = true;
@@ -57,12 +57,6 @@ export class AggregationTableComponent
5757
});
5858
}
5959

60-
ngOnChanges(): void {
61-
const defaultValue = this.selectedAggregations?.value;
62-
this.setAllAggregations();
63-
this.setSelectedAggregations(defaultValue);
64-
}
65-
6660
/**
6761
* Sets the list of all aggregations from resource / form.
6862
*/

0 commit comments

Comments
 (0)