Fix/adding manga to library not updating category (#559)

* Refetch categories after updating a manga

After adding/removing a manga to/from the library, the categories did not update.

* Include manga categories int the manga update mutation response
This commit is contained in:
schroda
2024-01-17 13:45:30 +01:00
committed by GitHub
parent e10cbf9e8f
commit 1c2a196950
2 changed files with 20 additions and 1 deletions

View File

@@ -75,6 +75,15 @@ export const UPDATE_MANGA = gql`
id
inLibrary
inLibraryAt
categories {
nodes {
id
mangas {
totalCount
}
}
totalCount
}
}
}
}
@@ -88,6 +97,15 @@ export const UPDATE_MANGAS = gql`
id
inLibrary
inLibraryAt
categories {
nodes {
id
mangas {
totalCount
}
}
totalCount
}
}
}
}