From a5e166fd923123f6863afed11e7c34bed687bded Mon Sep 17 00:00:00 2001 From: pavlovicnemanja Date: Thu, 12 Dec 2024 15:45:35 +0100 Subject: [PATCH] fix(scroll): Fixed issue with scroll --- client/components/ContentLists/Manual/Manual.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/ContentLists/Manual/Manual.jsx b/client/components/ContentLists/Manual/Manual.jsx index 0e53aa3..4d1c6b8 100644 --- a/client/components/ContentLists/Manual/Manual.jsx +++ b/client/components/ContentLists/Manual/Manual.jsx @@ -124,7 +124,7 @@ class Manual extends React.Component { if (listEl.scrollHeight - el.scrollTop - el.clientHeight < 100) { if (list === "articles") { - this.state.source && this.state.source.id === 'superdesk' ? + this.state.source && (this.state.source.id === 'scheduled' || this.state.source.id === 'in_progress') ? this._querySuperdeskArticles() : this._queryArticles(); } else { @@ -250,7 +250,7 @@ class Manual extends React.Component { }); }; - _querySuperdeskArticles = (filter, reset = false) => { + _querySuperdeskArticles = (filter = this.state.source.id, reset = false) => { // Get Superdesk API instance const superedeskApi = window['extensionsApiInstances']['publisher-extension'];