mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Update dependencies (#3123)
* Update localforage, remove query-string * Update fontawesome and flag-icons * Update formatjs * Update axios and videojs * Update apollo client and graphql * Update bootstrap and react * Update polyfills * Update vite * Update ESLint * Update stylelint * Update configs * Rebuild yarn.lock
This commit is contained in:
@@ -436,23 +436,13 @@ const updateSceneO = (
|
||||
cache: ApolloCache<SceneOMutation>,
|
||||
updatedOCount?: number
|
||||
) => {
|
||||
const scene = cache.readQuery<
|
||||
GQL.FindSceneQuery,
|
||||
GQL.FindSceneQueryVariables
|
||||
>({
|
||||
query: GQL.FindSceneDocument,
|
||||
variables: { id },
|
||||
});
|
||||
if (updatedOCount === undefined || !scene?.findScene) return;
|
||||
if (updatedOCount === undefined) return;
|
||||
|
||||
cache.writeQuery<GQL.FindSceneQuery, GQL.FindSceneQueryVariables>({
|
||||
query: GQL.FindSceneDocument,
|
||||
variables: { id },
|
||||
data: {
|
||||
...scene,
|
||||
findScene: {
|
||||
...scene.findScene,
|
||||
o_counter: updatedOCount,
|
||||
cache.modify({
|
||||
id: cache.identify({ __typename: "Scene", id }),
|
||||
fields: {
|
||||
o_counter() {
|
||||
return updatedOCount;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user