bug with deleting after adding

This commit is contained in:
lotte
2019-08-20 17:44:40 +02:00
parent 40b30b7aea
commit 90a9570e7d
4 changed files with 36 additions and 25 deletions

View File

@@ -195,8 +195,9 @@ export class ObjectCacheService {
* false otherwise
*/
hasByUUID(uuid: string): boolean {
let result: boolean;
let result = false;
/* NB: that this is only a solution because the select method is synchronous, see: https://github.com/ngrx/store/issues/296#issuecomment-269032571*/
this.store.pipe(
select(selfLinkFromUuidSelector(uuid)),
take(1)