diff --git a/webroot/js/app.js b/webroot/js/app.js index 65ecc044c..b75610238 100644 --- a/webroot/js/app.js +++ b/webroot/js/app.js @@ -550,21 +550,22 @@ export default class App extends Component { : html` <${VideoPoster} offlineImage=${logo} active=${streamOnline} /> `; const externalActionButtons = - externalActions && - html`
- ${externalActions.map( - function (action, index) { - return html`<${ExternalActionButton} - onClick=${this.displayExternalAction} - action=${action} - index=${index} - />`; - }.bind(this) - )} -
`; + externalActions && externalActions.length > 0 + ? html`
+ ${externalActions.map( + function (action, index) { + return html`<${ExternalActionButton} + onClick=${this.displayExternalAction} + action=${action} + index=${index} + />`; + }.bind(this) + )} +
` + : null; const externalActionModal = externalAction ? html`<${ExternalActionModal} @@ -667,7 +668,7 @@ export default class App extends Component {

${name}

-
${externalActionButtons}
+ ${externalActionButtons && html`
${externalActionButtons}
`}

${streamOnline && streamTitle}