diff --git a/public/app/features/alerting/unified/api/alertSilencesApi.ts b/public/app/features/alerting/unified/api/alertSilencesApi.ts index 3c361f270a5..b46b20a1938 100644 --- a/public/app/features/alerting/unified/api/alertSilencesApi.ts +++ b/public/app/features/alerting/unified/api/alertSilencesApi.ts @@ -26,8 +26,14 @@ export const alertSilencesApi = alertingApi.injectEndpoints({ accesscontrol: accessControl, }, }), - providesTags: (result) => - result ? result.map(({ id }) => ({ type: 'AlertmanagerSilences', id })) : ['AlertmanagerSilences'], + providesTags: (result) => { + return result + ? [ + ...result.map(({ id }) => ({ type: 'AlertmanagerSilences' as const, id })), + { type: 'AlertmanagerSilences' }, + ] + : [{ type: 'AlertmanagerSilences' }]; + }, }), getSilence: build.query<