From e5b4036d4951f7dd99533e6ec45c0f2831d027e8 Mon Sep 17 00:00:00 2001 From: Mariell Hoversholm Date: Tue, 26 Aug 2025 12:58:18 +0200 Subject: [PATCH] [release-12.1.2] Chore: Don't show a "Not found" for public-dashboard fetches if the service is disabled via config (#110144) Co-authored-by: Michael Mandrus <41969079+mmandrus@users.noreply.github.com> --- public/app/features/dashboard/api/publicDashboardApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/dashboard/api/publicDashboardApi.ts b/public/app/features/dashboard/api/publicDashboardApi.ts index f7b19ace849..99fa565a453 100644 --- a/public/app/features/dashboard/api/publicDashboardApi.ts +++ b/public/app/features/dashboard/api/publicDashboardApi.ts @@ -43,7 +43,7 @@ export const publicDashboardApi = createApi({ try { await queryFulfilled; } catch (e) { - if (isFetchBaseQueryError(e) && isFetchError(e.error)) { + if (isFetchBaseQueryError(e) && isFetchError(e.error) && config.publicDashboardsEnabled) { dispatch(notifyApp(createErrorNotification(e.error.data.message))); } }