@flowfuse/node-red-dashboard 1.30.1-d27457e-202512202013.0 → 1.30.1-ddb5563-202512211347.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -184,13 +184,10 @@ module.exports = function (RED) {
184
184
  x = evaluateNodePropertyWithKey(node, msg, payload, config.xAxisProperty, config.xAxisPropertyType)
185
185
  }
186
186
  if (Array.isArray(series)) {
187
- if (series.length > 1) {
188
- y = series.map((s) => {
189
- return getProperty(payload, s)
190
- })
191
- } else {
192
- y = getProperty(payload, series[0])
193
- }
187
+ // if the series is an array then y should be an array too, even if only of length 1
188
+ y = series.map((s) => {
189
+ return getProperty(payload, s)
190
+ })
194
191
  } else {
195
192
  if (config.categoryType === 'json') {
196
193
  // we are using the "series" as a key to get the y value from the payload
@@ -201,7 +201,6 @@ module.exports = function (RED) {
201
201
  // When the target was to identify a widget, then the search is over here if a widget has been found
202
202
  if (widgetNode && type === 'widget') {
203
203
  identifiedNodes.push(widgetNode)
204
- return
205
204
  }
206
205
  }
207
206
 
@@ -338,10 +337,10 @@ module.exports = function (RED) {
338
337
  widgets.hide = updateStateStore('widget', widgets.hide, msg, 'visible', false)
339
338
  }
340
339
  if ('enable' in widgets) {
341
- widgets.enable = updateStateStore('widget', widgets.enable, msg, 'disabled', false)
340
+ widgets.enable = updateStateStore('widget', widgets.enable, msg, 'enabled', true)
342
341
  }
343
342
  if ('disable' in widgets) {
344
- widgets.disable = updateStateStore('widget', widgets.disable, msg, 'disabled', true)
343
+ widgets.disable = updateStateStore('widget', widgets.disable, msg, 'enabled', false)
345
344
  }
346
345
 
347
346
  // ensure consistency in payload format
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowfuse/node-red-dashboard",
3
- "version": "1.30.1-d27457e-202512202013.0",
3
+ "version": "1.30.1-ddb5563-202512211347.0",
4
4
  "description": "FlowFuse Dashboard - A collection of Node-RED nodes that provide functionality to build your own UI applications (inc. forms, buttons, charts).",
5
5
  "keywords": [
6
6
  "node-red"