diff --git a/src/routes/(app)/browse/source/[sourceID]/PreferencesModal.svelte b/src/routes/(app)/browse/source/[sourceID]/PreferencesModal.svelte index 2342dc0..fc6ad9b 100644 --- a/src/routes/(app)/browse/source/[sourceID]/PreferencesModal.svelte +++ b/src/routes/(app)/browse/source/[sourceID]/PreferencesModal.svelte @@ -36,7 +36,7 @@ return untrack( () => queryState({ - client: getContextClient(), + client, query: getSource, variables: { id: data.sourceID diff --git a/src/routes/(app)/manga/[MangaID]/(manga)/MangaCatagoryModal.svelte b/src/routes/(app)/manga/[MangaID]/(manga)/MangaCatagoryModal.svelte index 52a3d1a..48e1cb5 100644 --- a/src/routes/(app)/manga/[MangaID]/(manga)/MangaCatagoryModal.svelte +++ b/src/routes/(app)/manga/[MangaID]/(manga)/MangaCatagoryModal.svelte @@ -10,10 +10,7 @@ import TriStateSlide from '$lib/components/TriStateSlide.svelte'; import { CategoryTypeFragment } from '$lib/gql/Fragments'; import { updateMangaCategories } from '$lib/gql/Mutations'; - import { - getCategories as GetCategories, - type getManga - } from '$lib/gql/Queries'; + import { getCategories as GetCategories } from '$lib/gql/Queries'; import { ErrorHelp, queryState } from '$lib/util.svelte'; import { getModalStore } from '@skeletonlabs/skeleton'; import { getContextClient } from '@urql/svelte'; @@ -59,7 +56,7 @@ 'Failed to change mangas categories', client .mutation(updateMangaCategories, { - id: manga.value?.data?.manga.id!, + id: manga.value!.data!.manga.id!, addTo: selectedCategories, clear: true }) diff --git a/src/routes/(app)/manga/[MangaID]/(manga)/NotesModal.svelte b/src/routes/(app)/manga/[MangaID]/(manga)/NotesModal.svelte index 5d57264..af2168e 100644 --- a/src/routes/(app)/manga/[MangaID]/(manga)/NotesModal.svelte +++ b/src/routes/(app)/manga/[MangaID]/(manga)/NotesModal.svelte @@ -11,8 +11,6 @@ import { mmState } from '$lib/simpleStores.svelte'; import ModalTemplate from '$lib/components/ModalTemplate.svelte'; const modalStore = getModalStore(); - - mmState.value.notes; {#if $modalStore[0]}