bugfix: Switch to first dashboard if actions page is empty

This commit is contained in:
jamesread 2024-03-04 23:37:53 +00:00
parent e344530fc0
commit 471d5726f6
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ function marshalDashboardStructureToHtml (json) {
} }
} }
if (rootGroup.querySelectorAll('action-button').length > 0 && json.dashboards.length > 0) { if (rootGroup.querySelectorAll('action-button').length === 0 && json.dashboards.length > 0) {
nav.querySelector('li[title="Actions"]').style.display = 'none' nav.querySelector('li[title="Actions"]').style.display = 'none'
showSection(json.dashboards[0].title) showSection(json.dashboards[0].title)