-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: editing mod tags and authors (#187)
* feat: fix editing mods, specifically tags * fix: cleanup statements for tags * fix: remove commented out code
- Loading branch information
1 parent
51d009d
commit 028d2a2
Showing
5 changed files
with
27 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
import { GetModDocument } from '$lib/generated'; | ||
import { loadWaitForNoFetch } from '$lib/utils/gql'; | ||
import { queryStore } from '@urql/svelte'; | ||
import type { PageLoad } from './$types'; | ||
|
||
export const load: PageLoad = async ({ params }) => ({ | ||
...params | ||
export const load: PageLoad = async ({ params, parent }) => ({ | ||
...params, | ||
...(await loadWaitForNoFetch({ | ||
mod: queryStore({ | ||
query: GetModDocument, | ||
client: (await parent()).client, | ||
variables: { mod: params.modId }, | ||
requestPolicy: 'network-only' | ||
}) | ||
})) | ||
}); |