Skip to content

Commit 3806100

Browse files
committed
chore: add comment for isGrafanaInstalled
1 parent 650faa4 commit 3806100

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/common/navigation/NavigationRoutes.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ const NavigationRoutes = ({ reloadVersionConfig }: Readonly<NavigationRoutesType
149149
const showCloseButtonAfterGettingStartedClicked = () => {
150150
setHelpGettingStartedClicked(true)
151151
}
152+
// We use this to determine if we can show resource recommender, since we do not allow users to feed prometheus url if grafana module is not installed
152153
const [isGrafanaModuleInstalled, setIsGrafanaModuleInstalled] = useState(false)
153154
const [environmentId, setEnvironmentId] = useState(null)
154155
const contextValue = useMemo(() => ({ environmentId, setEnvironmentId }), [environmentId])

0 commit comments

Comments
 (0)