Skip to content

Commit 0e27cb1

Browse files
committed
Correctly invalidate category images
1 parent ac179ed commit 0e27cb1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/apiSlice.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ export const api = createApi({
198198
},
199199
body,
200200
}),
201+
invalidatesTags: ["category-images"],
201202
}),
202203
deleteUnusedImages: build.mutation<OkResponse, RequestWithToken>({
203204
query: ({ token }) => ({
@@ -207,6 +208,7 @@ export const api = createApi({
207208
Authorization: `Bearer ${token}`,
208209
},
209210
}),
211+
invalidatesTags: ["category-images"],
210212
}),
211213
addImageToCategory: build.mutation<OkResponse, AddImageToCategoryRequest>({
212214
query: ({ token, category, image, body }) => ({

0 commit comments

Comments
 (0)