Skip to content

Commit 34c0420

Browse files
marcinmajkowskibrandonroberts
authored andcommitted
fix(data): use correct guard when handling optimistic update (#2060)
Closes #2059
1 parent ddab4cd commit 34c0420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/data/src/dispatchers/entity-dispatcher-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ export class EntityDispatcherBase<T> implements EntityDispatcher<T> {
344344
options
345345
);
346346
if (options.isOptimistic) {
347-
this.guard.mustBeEntity(action as EntityAction);
347+
this.guard.mustBeUpdate(action);
348348
}
349349
this.dispatch(action);
350350
return this.getResponseData$<UpdateResponseData<T>>(

0 commit comments

Comments
 (0)