Skip to content

Commit

Permalink
only load critical alerts modal once devops store is set
Browse files Browse the repository at this point in the history
  • Loading branch information
alpetric committed Jan 9, 2025
1 parent 4c8c90e commit ec11c00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/routes/(root)/(logged)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@
setContext('openSearchWithPrefilledText', openSearchModal)
$: {
if ($enterpriseLicense && $workspaceStore && $userStore && ($devopsRole || $userStore.is_admin)) {
if ($enterpriseLicense && $workspaceStore && $userStore && $devopsRole !== undefined && ($devopsRole || $userStore.is_admin)) {
console.log('mountModal', $devopsRole, $userStore.is_admin)
mountModal = true
loadCriticalAlertsMuted()
}
Expand Down

0 comments on commit ec11c00

Please sign in to comment.