diff --git a/services/web/frontend/js/ide/review-panel/controllers/ReviewPanelController.js b/services/web/frontend/js/ide/review-panel/controllers/ReviewPanelController.js index c692b41328..74383832c1 100644 --- a/services/web/frontend/js/ide/review-panel/controllers/ReviewPanelController.js +++ b/services/web/frontend/js/ide/review-panel/controllers/ReviewPanelController.js @@ -488,15 +488,14 @@ export default App.controller( } } - if ( - rangesTracker.comments.length > 0 && - !window.isRestrictedTokenMember - ) { - ensureThreadsAreLoaded() - } else { - // ensure that tracked changes are highlighted even if no comments are loaded - ide.$scope.loadingThreads = false - dispatchReviewPanelEvent('loaded_threads') + if (!window.isRestrictedTokenMember) { + if (rangesTracker.comments.length > 0) { + ensureThreadsAreLoaded() + } else { + // ensure that tracked changes are highlighted even if no comments are loaded + ide.$scope.loadingThreads = false + dispatchReviewPanelEvent('loaded_threads') + } } for (const comment of Array.from(rangesTracker.comments)) {