Skip to content

Commit e2b7d28

Browse files
authored
Actually fix sidebar tags with proper logic (forem#21289)
1 parent 45537e5 commit e2b7d28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/javascript/packs/homePage.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,8 @@ function renderSidebar() {
8888
}
8989

9090
const feedTimeFrame = frontPageFeedPathNames.get(window.location.pathname);
91-
const currentPage = document.getElementById('page-content')?.dataset.currentPage;
9291

93-
if (currentPage === 'stories-index' && !document.getElementById('featured-story-marker')) {
92+
if (document.getElementById('sidebar-nav-followed-tags')) {
9493
const waitingForDataLoad = setInterval(() => {
9594
const { user = null, userStatus } = document.body.dataset;
9695
if (userStatus === 'logged-out') {

0 commit comments

Comments
 (0)