eval node - fix interpolation
This commit is contained in:
@@ -56,13 +56,9 @@ export default class NumberBinaryOperation extends Node<typeof inputs, typeof ou
|
|||||||
}
|
}
|
||||||
|
|
||||||
interpolate() {
|
interpolate() {
|
||||||
return this.in.formula.value.replace(/\{(\w+)\}/g, (_, paramName) => {
|
return this.in.formula.value.replace(/\{(\w+)\}/g, (_, paramName) =>
|
||||||
const value = get(this.in, [paramName, 'value']);
|
get(this.in, [paramName, 'value'], 0)
|
||||||
if (value) {
|
)
|
||||||
return value;
|
|
||||||
}
|
|
||||||
return '';
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
evaluate() {
|
evaluate() {
|
||||||
|
|||||||
Reference in New Issue
Block a user