mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
refetch baord list when image is starred or unstarred
This commit is contained in:
parent
069d8b5812
commit
f4ba7be918
@ -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 [];
|
||||
|
Loading…
Reference in New Issue
Block a user