diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index 9406830..92c6b5f 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -22456,6 +22456,9 @@ class PlexMeetsHomeAssistant extends HTMLElement { } return false; }); + const returnObj = { + renderedItems: this.renderedItems + }; if (!render) { this.renderedRows = origRenderedRows; this.renderedItems = origRenderedItems; @@ -22464,9 +22467,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { if (render && containerWidth > 0) { this.contentContainer.style.width = `${containerWidth}px`; } - return { - renderedItems: this.renderedItems - }; + return returnObj; }; const renderMore = (!this.maxCount || this.renderedItems < this.maxCount) && (!this.maxRenderCount || this.renderedItems < this.maxRenderCount) && diff --git a/src/plex-meets-homeassistant.ts b/src/plex-meets-homeassistant.ts index f8c5a5c..35b0b68 100644 --- a/src/plex-meets-homeassistant.ts +++ b/src/plex-meets-homeassistant.ts @@ -698,6 +698,9 @@ class PlexMeetsHomeAssistant extends HTMLElement { } return false; }); + const returnObj = { + renderedItems: this.renderedItems + }; if (!render) { this.renderedRows = origRenderedRows; this.renderedItems = origRenderedItems; @@ -706,9 +709,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { if (render && containerWidth > 0) { this.contentContainer.style.width = `${containerWidth}px`; } - return { - renderedItems: this.renderedItems - }; + return returnObj; }; const renderMore =