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:
DingDongSoLong4
2023-02-16 05:06:44 +02:00
committed by GitHub
parent 0c9eeef143
commit a1851b3713
137 changed files with 5102 additions and 5729 deletions

View File

@@ -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;
},
},
});