mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 20:59:35 +08:00
Chore: Don't show a "Not found" for public-dashboard fetches if the service is disabled via config (#108650)
don't show 404 toast if pubdash is completely disabled
This commit is contained in:
@ -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)));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user