Fix bug in variable_map that was introduced during merge conflict resolving

This commit is contained in:
kozbial
2021-09-22 10:28:06 -07:00
parent b956fa758f
commit d614f5859d

View File

@@ -152,7 +152,7 @@ VariableMap.prototype.renameVariableWithConflict_ = function(
// Finally delete the original variable, which is now unreferenced.
Events.fire(new (Events.get(Events.VAR_DELETE))(variable));
// And remove it from the list.
utils.arrayRemove(this.getVariablesOfType(type), variable);
utils.arrayRemove(this.variableMap_[type], variable);
};
/* End functions for renaming variables. */