[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>
This commit is contained in:
Mariell Hoversholm
2025-08-26 12:58:18 +02:00
committed by GitHub
co-authored by Michael Mandrus
parent 1dc715cf81
commit e5b4036d49
@@ -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)));
}
}