-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
In NaturalAbstractDetail.ngOnInit
I think we should simplify like so:
- this.data = merge({model: this.service.getConsolidatedForClient()}, data[this.key]);
- this.data = merge(this.data, omit(data, [this.key]));
+ this.data = data;
If my understanding is correct we try force default values on whatever is coming from the route. But the route is already populated with default value via NaturalAbstractModelService.resolve
who called getConsolidatedForClient
earlier. So our current code seems to be entirely redundant as long as we properly use revolvers.
So we should double-check that resolvers are used correctly in all our projects and simplify this code.
Metadata
Metadata
Assignees
Labels
No labels