From f4ba7be9189b0c35ed772c291a6b7105a93b747d Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Tue, 3 Oct 2023 12:05:07 -0400 Subject: [PATCH] refetch baord list when image is starred or unstarred --- .../frontend/web/src/services/api/endpoints/images.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/invokeai/frontend/web/src/services/api/endpoints/images.ts b/invokeai/frontend/web/src/services/api/endpoints/images.ts index e653a6ec3e..239dfaa982 100644 --- a/invokeai/frontend/web/src/services/api/endpoints/images.ts +++ b/invokeai/frontend/web/src/services/api/endpoints/images.ts @@ -473,6 +473,7 @@ export const imagesApi = api.injectEndpoints({ if (images[0]) { const categories = getCategories(images[0]); const boardId = images[0].board_id; + return [ { type: 'ImageList', @@ -481,6 +482,10 @@ export const imagesApi = api.injectEndpoints({ categories, }), }, + { + type: 'Board', + id: boardId, + }, ]; } return []; @@ -595,6 +600,10 @@ export const imagesApi = api.injectEndpoints({ categories, }), }, + { + type: 'Board', + id: boardId, + }, ]; } return [];