From 1530e365b51ba6c80983333f9fd70945165289d7 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Wed, 1 Sep 2021 07:37:23 -0700 Subject: [PATCH] Only show buttons if there are thumbnails. --- src/frigate-hass-card.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frigate-hass-card.ts b/src/frigate-hass-card.ts index fe0ca2f1..6c08c272 100644 --- a/src/frigate-hass-card.ts +++ b/src/frigate-hass-card.ts @@ -753,7 +753,7 @@ export class FrigateCard extends LitElement { const neighbors = this._getMediaNeighbors(parent, childIndex); return html` - ${neighbors?.previous + ${neighbors?.previous && neighbors.previous.thumbnail ? html``} - ${neighbors?.next + ${neighbors?.next && neighbors.next.thumbnail ? html`