From 788cf9fbd3426a4446ef52cf42f1eb0374f13b16 Mon Sep 17 00:00:00 2001 From: VasilisTert Date: Tue, 22 Nov 2022 15:45:44 +0200 Subject: [PATCH] Fix disableFreeze flag --- src/lokijs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lokijs.js b/src/lokijs.js index 0588569c..d262873f 100644 --- a/src/lokijs.js +++ b/src/lokijs.js @@ -3891,7 +3891,7 @@ // pass in each document object currently in resultset to user supplied updateFunction for (var idx = 0; idx < len; idx++) { // if we have cloning option specified or are doing differential delta changes, clone object first - if (!this.disableFreeze || this.collection.cloneObjects || !this.collection.disableDeltaChangesApi) { + if (!this.collection.disableFreeze || this.collection.cloneObjects || !this.collection.disableDeltaChangesApi) { obj = clone(rcd[this.filteredrows[idx]], this.collection.cloneMethod); updateFunction(obj); this.collection.update(obj);