|
|
@@ -966,7 +966,6 @@ export class FuncInstance {
|
|
|
const str = this.def.name + '(';
|
|
|
|
|
|
const parameters = _.map(this.params, (value, index) => {
|
|
|
- const valueInterpolated = replaceVariables(value);
|
|
|
let paramType;
|
|
|
|
|
|
if (index < this.def.params.length) {
|
|
|
@@ -980,6 +979,8 @@ export class FuncInstance {
|
|
|
return value;
|
|
|
}
|
|
|
|
|
|
+ const valueInterpolated = _.isString(value) ? replaceVariables(value) : value;
|
|
|
+
|
|
|
// param types that might be quoted
|
|
|
// To quote variables correctly we need to interpolate it to check if it contains a numeric or string value
|
|
|
if (_.includes(['int_or_interval', 'node_or_tag'], paramType) && _.isFinite(+valueInterpolated)) {
|