fix(ui): invalidate InvocationCacheStatus query cache after clearing intermediates

This commit is contained in:
psychedelicious 2024-03-06 23:27:55 +11:00 committed by Kent Keirsey
parent d3ab08fe10
commit fe6e879d38

View File

@ -109,7 +109,7 @@ export const imagesApi = api.injectEndpoints({
}),
clearIntermediates: build.mutation<number, void>({
query: () => ({ url: buildImagesUrl('intermediates'), method: 'DELETE' }),
invalidatesTags: ['IntermediatesCount'],
invalidatesTags: ['IntermediatesCount', 'InvocationCacheStatus'],
}),
getImageDTO: build.query<ImageDTO, string>({
query: (image_name) => ({ url: buildImagesUrl(`i/${image_name}`) }),