Fix js warning

This commit is contained in:
Alfredo Cardigliano 2021-11-24 16:26:17 +01:00
parent 0192750fed
commit e5f8fb2bd4

View file

@ -184,12 +184,14 @@
// reload the table
$table.ajax.url(`{* datatable.datasource.name *}?${searchParams.toString()}`).load();
{% if chart and chart.name then %}
try {
WidgetUtils.getWidgetByName("{{ chart.name }}").update(datasourceParams);
}
catch(e) {
console.warn(e);
}
{% end %}
{% if show_cards then %}
updateCardStats();