fix for multibar widget

This commit is contained in:
gabryon99 2020-04-27 19:21:12 +02:00
parent bf047da111
commit ab0c7ae440
6 changed files with 34 additions and 31 deletions

View file

@ -25,8 +25,8 @@ local WIDGET_TYPES = {
table = {
i18n = "Table"
},
timeseries = {
i18n = "Timeseries"
multibar = {
i18n = "Multibar"
}
}
@ -194,6 +194,8 @@ function widgets_utils.generate_response(widget, params)
local response = require(origin)
response = response:getData(widget.type)
tprint(widget.type)
return json.encode({
widgetName = widget.name,
widgetType = widget.type,