+
diff --git a/src/client/app/common/views/pages/page/page.vue b/src/client/app/common/views/pages/page/page.vue
index 88598d3527..27e9a7aec4 100644
--- a/src/client/app/common/views/pages/page/page.vue
+++ b/src/client/app/common/views/pages/page/page.vue
@@ -27,7 +27,7 @@ import { url } from '../../../../config';
class Script {
public aiScript: AiScript;
- public vars: any;
+ public vars: Record
;
constructor(aiScript) {
this.aiScript = aiScript;
@@ -41,7 +41,7 @@ class Script {
public interpolate(str: string) {
if (str == null) return null;
return str.replace(/\{(.+?)\}/g, match => {
- const v = this.vars.find(x => x.name === match.slice(1, -1).trim()).value;
+ const v = this.vars[match.slice(1, -1).trim()];
return v == null ? 'NULL' : v.toString();
});
}