We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac179ed commit 0e27cb1Copy full SHA for 0e27cb1
src/app/apiSlice.ts
@@ -198,6 +198,7 @@ export const api = createApi({
198
},
199
body,
200
}),
201
+ invalidatesTags: ["category-images"],
202
203
deleteUnusedImages: build.mutation<OkResponse, RequestWithToken>({
204
query: ({ token }) => ({
@@ -207,6 +208,7 @@ export const api = createApi({
207
208
Authorization: `Bearer ${token}`,
209
210
211
212
213
addImageToCategory: build.mutation<OkResponse, AddImageToCategoryRequest>({
214
query: ({ token, category, image, body }) => ({
0 commit comments