diff --git a/app/javascript/entrypoints/dashboardTabs.js b/app/javascript/entrypoints/dashboardTabs.js index 72025acf..1ea7aaad 100644 --- a/app/javascript/entrypoints/dashboardTabs.js +++ b/app/javascript/entrypoints/dashboardTabs.js @@ -18,9 +18,11 @@ export function dashStyle(railsSession) { admin.classList.add('active'); break; default: - project.style.borderBottom = 'solid'; - project.style.borderColor = '#E77500'; - project.classList.add('active'); + if (project !== null) { + project.style.borderBottom = 'solid'; + project.style.borderColor = '#E77500'; + project.classList.add('active'); + } break; } }