Skip to content

Commit 94528b7

Browse files
committed
Fix checking for unnecessary operations
1 parent 88a5b7b commit 94528b7

File tree

1 file changed

+1
-1
lines changed
  • packages/app/src/app/overmind/effects/live

1 file changed

+1
-1
lines changed

packages/app/src/app/overmind/effects/live/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ class Live {
395395

396396
if (operation.ops.length === 1) {
397397
const [op] = operation.ops;
398-
if (typeof op === 'number') {
398+
if (typeof op === 'number' && op >= 0) {
399399
// Useless to send a single retain operation, ignore
400400
return;
401401
}

0 commit comments

Comments
 (0)