Repair grievous error wrt immutable updates being discarded

This commit is contained in:
Tony Garnock-Jones 2018-11-21 15:31:44 +00:00
parent 475355ad3d
commit 3adb057e13
1 changed files with 2 additions and 2 deletions

View File

@ -181,9 +181,9 @@ Index.prototype.removeHandler = function(analysisResults, callback) {
constValMap = constValMap.remove(constVals);
}
if (constValMap.isEmpty()) {
continuation.leafMap.remove(constPaths);
continuation.leafMap = continuation.leafMap.remove(constPaths);
} else {
continuation.leafMap.set(constPaths, constValMap);
continuation.leafMap = continuation.leafMap.set(constPaths, constValMap);
}
};