Fix DB update calls containing unchanged params

This commit is contained in:
Zaid Abdulla committed 2022-03-11 11:43:49 -08:00
1 parent 4b533d0aad
commit 344f0ec5e0
1 file changed
+1
+1
View File
@@ -168,6 +168,7 @@ export default class VersionedMap<K, V> {
public *diff(): IterableIterator<[K, V, V]> {
for (const [key, revisions] of this.map) {
if (revisions.length === 1) continue;
let first = revisions[0];
let last = revisions[revisions.length - 1];
if (first === NONEXISTENT && last === NONEXISTENT) continue;