fix(ui): error when using delete
Adds a check to see if the resolved value from `service::delete` is
`null` and uses the given `entity` instead for the resolved value.
Fixes
@@ -244,6 +244,9 @@ export abstract class AbstractStore<
const deleted = new Subject<T>();
this.service.delete(entity).subscribe(
e => {
+ if (e === null) {
+ e = entity;
+ }
deleted.next(this.plain(e));
},
error => {
