Small fix in dashboard

This commit is contained in:
Alexey Milovidov 2022-09-26 23:52:14 +02:00
parent a3b28b441b
commit 6d7de37e3d

View File

@ -820,7 +820,7 @@ async function draw(idx, chart, url_params, query) {
sync.sub(plots[idx]); sync.sub(plots[idx]);
/// Set title /// Set title
const title = queries[idx].title.replaceAll(/\{(\w+)\}/g, (_, name) => params[name] ); const title = queries[idx].title ? queries[idx].title.replaceAll(/\{(\w+)\}/g, (_, name) => params[name] ) : '';
chart.querySelector('.title').firstChild.data = title; chart.querySelector('.title').firstChild.data = title;
} }