diff options
Diffstat (limited to 'src/client/app/common/views/pages/page/page.vue')
| -rw-r--r-- | src/client/app/common/views/pages/page/page.vue | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/app/common/views/pages/page/page.vue b/src/client/app/common/views/pages/page/page.vue index e7e8f76d53..7cbd3ed81b 100644 --- a/src/client/app/common/views/pages/page/page.vue +++ b/src/client/app/common/views/pages/page/page.vue @@ -38,6 +38,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; return v == null ? 'NULL' : v.toString(); |