Fix: Simulation of render not returning proper rendered count

pull/72/head
Juraj Nyíri 3 years ago
parent 56aede4b5e
commit 9e006ae6fa

@ -22456,6 +22456,9 @@ class PlexMeetsHomeAssistant extends HTMLElement {
} }
return false; return false;
}); });
const returnObj = {
renderedItems: this.renderedItems
};
if (!render) { if (!render) {
this.renderedRows = origRenderedRows; this.renderedRows = origRenderedRows;
this.renderedItems = origRenderedItems; this.renderedItems = origRenderedItems;
@ -22464,9 +22467,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
if (render && containerWidth > 0) { if (render && containerWidth > 0) {
this.contentContainer.style.width = `${containerWidth}px`; this.contentContainer.style.width = `${containerWidth}px`;
} }
return { return returnObj;
renderedItems: this.renderedItems
};
}; };
const renderMore = (!this.maxCount || this.renderedItems < this.maxCount) && const renderMore = (!this.maxCount || this.renderedItems < this.maxCount) &&
(!this.maxRenderCount || this.renderedItems < this.maxRenderCount) && (!this.maxRenderCount || this.renderedItems < this.maxRenderCount) &&

@ -698,6 +698,9 @@ class PlexMeetsHomeAssistant extends HTMLElement {
} }
return false; return false;
}); });
const returnObj = {
renderedItems: this.renderedItems
};
if (!render) { if (!render) {
this.renderedRows = origRenderedRows; this.renderedRows = origRenderedRows;
this.renderedItems = origRenderedItems; this.renderedItems = origRenderedItems;
@ -706,9 +709,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
if (render && containerWidth > 0) { if (render && containerWidth > 0) {
this.contentContainer.style.width = `${containerWidth}px`; this.contentContainer.style.width = `${containerWidth}px`;
} }
return { return returnObj;
renderedItems: this.renderedItems
};
}; };
const renderMore = const renderMore =

Loading…
Cancel
Save