Skip to content

Commit

Permalink
Widgets: Add default value for isDataExpected (#2244)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenpingol-xibo committed Nov 29, 2023
1 parent bd03a89 commit 726f13a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/src/helpers/player-helper.js
Expand Up @@ -38,6 +38,11 @@ const PlayerHelper = function() {

values.forEach((value, widgetIndex) => {
const _widget = _widgetData[widgetIndex];

if (!_widget.hasOwnProperty('isDataExpected')) {
_widget.isDataExpected = _widget.url !== null;
}

const {dataItems, showError, errorMessage} =
this.composeFinalData(_widget, value);

Expand Down

0 comments on commit 726f13a

Please sign in to comment.