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;
});
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) &&

@ -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 =

Loading…
Cancel
Save