mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-12 17:15:37 +00:00
bugfix: Switch to first dashboard if actions page is empty
This commit is contained in:
@@ -170,7 +170,7 @@ function marshalDashboardStructureToHtml (json) {
|
|||||||
document.getElementById('navigation-links').appendChild(navigationLi)
|
document.getElementById('navigation-links').appendChild(navigationLi)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (document.getElementById('root-group').children.length === 0 && json.dashboards.length > 0) {
|
if (document.getElementById('root-group').querySelectorAll('action-button').length === 0 && json.dashboards.length > 0) {
|
||||||
showSection(json.dashboards[0].title)
|
showSection(json.dashboards[0].title)
|
||||||
} else {
|
} else {
|
||||||
showSection('Actions')
|
showSection('Actions')
|
||||||
|
|||||||
Reference in New Issue
Block a user