Skip to content

Commit

Permalink
fix missing index update/mocha test
Browse files Browse the repository at this point in the history
  • Loading branch information
whoozle committed Jul 9, 2024
1 parent e0b94cf commit ab28d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ exports.ModelUpdate.prototype.apply = function(view, skipCheck) {
apply(ModelUpdateInsert, src, src_n - dst_n)
break
} else if (dst === src) {
apply(row[1]? ModelUpdateUpdate: ModelUpdateNothing, src)
apply(row[1] || offset !== 0? ModelUpdateUpdate: ModelUpdateNothing, src)
if (offset !== 0)
view._updateDelegateIndex(src)
++src
Expand Down

0 comments on commit ab28d49

Please sign in to comment.