From 922319cb84a9aff5ba4d83014b2c20d300bc7e52 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 22 Jun 2023 10:48:23 +1000 Subject: [PATCH] fix(ui): fix first added board doesn't show until refresh Had incorrect `invalidatesTags` array for the mutation. --- invokeai/frontend/web/src/services/apiSlice.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/services/apiSlice.ts b/invokeai/frontend/web/src/services/apiSlice.ts index 9a1521ce5a..2d42931b0b 100644 --- a/invokeai/frontend/web/src/services/apiSlice.ts +++ b/invokeai/frontend/web/src/services/apiSlice.ts @@ -86,7 +86,7 @@ export const api = createApi({ method: 'POST', params: { board_name }, }), - invalidatesTags: ['Board'], + invalidatesTags: [{ id: 'Board', type: LIST }], }), updateBoard: build.mutation({