Skip to content

Commit

Permalink
fix(data): use correct guard when handling optimistic update (#2060)
Browse files Browse the repository at this point in the history
Closes #2059
  • Loading branch information
marcinmajkowski authored and brandonroberts committed Aug 22, 2019
1 parent ddab4cd commit 34c0420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/data/src/dispatchers/entity-dispatcher-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export class EntityDispatcherBase<T> implements EntityDispatcher<T> {
options
);
if (options.isOptimistic) {
this.guard.mustBeEntity(action as EntityAction);
this.guard.mustBeUpdate(action);
}
this.dispatch(action);
return this.getResponseData$<UpdateResponseData<T>>(
Expand Down

0 comments on commit 34c0420

Please sign in to comment.