mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 14:03:06 +00:00
bug with deleting after adding
This commit is contained in:
3
src/app/core/cache/object-cache.service.ts
vendored
3
src/app/core/cache/object-cache.service.ts
vendored
@@ -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)
|
||||
|
Reference in New Issue
Block a user