mirror of
https://github.com/stashapp/stash.git
synced 2026-05-07 03:52:06 +02:00
Refresh file info counter after deleting a file (#6841)
The mutateDeleteFiles Apollo cache update evicted the plural list queries (findScenes/findImages/findGalleries) but not the singular detail queries, so the "File Info" counter on a scene/image/gallery detail page stayed stale until a manual refresh. Co-authored-by: dev-null-life <264850222+dev-null-life@users.noreply.github.com>
This commit is contained in:
parent
9234979084
commit
01a7583364
1 changed files with 3 additions and 0 deletions
|
|
@ -2264,6 +2264,9 @@ export const mutateDeleteFiles = (ids: string[]) =>
|
|||
}
|
||||
|
||||
evictQueries(cache, [
|
||||
GQL.FindSceneDocument, // files list on scene detail
|
||||
GQL.FindImageDocument, // files list on image detail
|
||||
GQL.FindGalleryDocument, // files list on gallery detail
|
||||
GQL.FindScenesDocument, // filter by file count
|
||||
GQL.FindImagesDocument, // filter by file count
|
||||
GQL.FindGalleriesDocument, // filter by file count
|
||||
|
|
|
|||
Loading…
Reference in a new issue