only load critical alerts modal once devops store is set (#5034)

* only load critical alerts modal once devops store is set

* remove console log
This commit is contained in:
Alexander Petric
2025-01-09 06:43:08 +01:00
committed by GitHub
parent 050503c480
commit 60aa7e0a8b
@@ -289,7 +289,7 @@
setContext('openSearchWithPrefilledText', openSearchModal)
$: {
if ($enterpriseLicense && $workspaceStore && $userStore && ($devopsRole || $userStore.is_admin)) {
if ($enterpriseLicense && $workspaceStore && $userStore && $devopsRole !== undefined && ($devopsRole || $userStore.is_admin)) {
mountModal = true
loadCriticalAlertsMuted()
}