braid-text 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1122,7 +1122,7 @@ function OpLog_remote_to_local(doc, frontier) {
|
|
|
1122
1122
|
|
|
1123
1123
|
let local_version = []
|
|
1124
1124
|
|
|
1125
|
-
let max_version = doc.getLocalVersion()
|
|
1125
|
+
let max_version = Math.max(-1, ...doc.getLocalVersion())
|
|
1126
1126
|
for (let i = 0; i <= max_version; i++) {
|
|
1127
1127
|
if (map[doc.localToRemoteVersion([i])[0].join("-")]) {
|
|
1128
1128
|
local_version.push(i)
|