diff --git a/graphql/documents/queries/misc.graphql b/graphql/documents/queries/misc.graphql index decb1c652..19d0d2b8b 100644 --- a/graphql/documents/queries/misc.graphql +++ b/graphql/documents/queries/misc.graphql @@ -6,12 +6,6 @@ query MarkerStrings($q: String, $sort: String) { } } -query AllTags { - allTags { - ...TagData - } -} - query AllPerformersForFilter { allPerformers { ...SlimPerformerData diff --git a/ui/v2.5/src/core/StashService.ts b/ui/v2.5/src/core/StashService.ts index 376a52b14..5578c8c33 100644 --- a/ui/v2.5/src/core/StashService.ts +++ b/ui/v2.5/src/core/StashService.ts @@ -313,7 +313,6 @@ export const usePlugins = () => GQL.usePluginsQuery(); export const usePluginTasks = () => GQL.usePluginTasksQuery(); export const useMarkerStrings = () => GQL.useMarkerStringsQuery(); -export const useAllTags = () => GQL.useAllTagsQuery(); export const useAllTagsForFilter = () => GQL.useAllTagsForFilterQuery(); export const useAllPerformersForFilter = () => GQL.useAllPerformersForFilterQuery(); @@ -408,7 +407,6 @@ const sceneMutationImpactedQueries = [ GQL.FindMoviesDocument, GQL.FindTagDocument, GQL.FindTagsDocument, - GQL.AllTagsDocument, ]; export const useSceneUpdate = () => @@ -562,7 +560,6 @@ const imageMutationImpactedQueries = [ GQL.FindStudiosDocument, GQL.FindTagDocument, GQL.FindTagsDocument, - GQL.AllTagsDocument, GQL.FindGalleryDocument, GQL.FindGalleriesDocument, ]; @@ -696,7 +693,6 @@ const galleryMutationImpactedQueries = [ GQL.FindStudiosDocument, GQL.FindTagDocument, GQL.FindTagsDocument, - GQL.AllTagsDocument, GQL.FindGalleryDocument, GQL.FindGalleriesDocument, ]; @@ -843,7 +839,6 @@ export const tagMutationImpactedQueries = [ GQL.FindSceneDocument, GQL.FindScenesDocument, GQL.FindSceneMarkersDocument, - GQL.AllTagsDocument, GQL.AllTagsForFilterDocument, GQL.FindTagsDocument, ]; @@ -851,15 +846,10 @@ export const tagMutationImpactedQueries = [ export const useTagCreate = () => GQL.useTagCreateMutation({ refetchQueries: getQueryNames([ - GQL.AllTagsDocument, GQL.AllTagsForFilterDocument, GQL.FindTagsDocument, ]), - update: deleteCache([ - GQL.FindTagsDocument, - GQL.AllTagsDocument, - GQL.AllTagsForFilterDocument, - ]), + update: deleteCache([GQL.AllTagsForFilterDocument, GQL.FindTagsDocument]), }); export const useTagUpdate = () => GQL.useTagUpdateMutation({