mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Small fix in dashboard
This commit is contained in:
parent
a3b28b441b
commit
6d7de37e3d
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user