From 69def579dab687e98eb5dc7a5ddcc6fd32dae448 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Nyi=CC=81ri?= Date: Tue, 31 Aug 2021 20:51:44 +0200 Subject: [PATCH] Update: Improve performance of rendering movie elements --- dist/plex-meets-homeassistant.js | 2 +- src/plex-meets-homeassistant.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index e6e8923..6c5964d 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -20950,7 +20950,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { this.renderedItems < this.data[this.config.libraryName].length && (!this.maxRows || this.renderedRows < this.config.maxRows)) { this.maxRenderCount = this.renderedItems + this.columnsCount * (loadAdditionalRowsCount * 2); - this.renderPage(); + this.renderMovieElems(); this.calculatePositions(); } }; diff --git a/src/plex-meets-homeassistant.ts b/src/plex-meets-homeassistant.ts index 296ed20..08ee42a 100644 --- a/src/plex-meets-homeassistant.ts +++ b/src/plex-meets-homeassistant.ts @@ -160,7 +160,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { (!this.maxRows || this.renderedRows < this.config.maxRows) ) { this.maxRenderCount = this.renderedItems + this.columnsCount * (loadAdditionalRowsCount * 2); - this.renderPage(); + this.renderMovieElems(); this.calculatePositions(); } };