Fix: variables in functions should not pollute upstream widgets (#8641)

This commit is contained in:
Saq Imtiaz
2024-09-30 14:26:36 +01:00
committed by GitHub
parent 96840b886f
commit 3f4067ef7b
2 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -335,7 +335,7 @@ Widget.prototype.makeFakeWidgetWithVariables = function(variables) {
};
} else {
opts = opts || {};
opts.variables = $tw.utils.extend(variables,opts.variables);
opts.variables = $tw.utils.extend({},variables,opts.variables);
return self.getVariableInfo(name,opts);
};
},