From 34c0420d06d075a1c81de6e50cc992b85e5bd268 Mon Sep 17 00:00:00 2001 From: Marcin Majkowski Date: Thu, 22 Aug 2019 05:22:30 +0200 Subject: [PATCH] fix(data): use correct guard when handling optimistic update (#2060) Closes #2059 --- modules/data/src/dispatchers/entity-dispatcher-base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/data/src/dispatchers/entity-dispatcher-base.ts b/modules/data/src/dispatchers/entity-dispatcher-base.ts index f33d598821..1e1aa7d496 100644 --- a/modules/data/src/dispatchers/entity-dispatcher-base.ts +++ b/modules/data/src/dispatchers/entity-dispatcher-base.ts @@ -344,7 +344,7 @@ export class EntityDispatcherBase implements EntityDispatcher { options ); if (options.isOptimistic) { - this.guard.mustBeEntity(action as EntityAction); + this.guard.mustBeUpdate(action); } this.dispatch(action); return this.getResponseData$>(