We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b20328 commit cac96f5Copy full SHA for cac96f5
src/content/hooks/search.ts
@@ -52,7 +52,9 @@ export const useSearch = (text: string) => {
52
pageInfo {
53
hasNextPage
54
}
55
- results: media(type: ANIME, search: "${textToSearch}", isAdult: ${isAdult}) {
+ results: media(type: ANIME, search: "${textToSearch}"${
56
+ isAdult ? "" : ", isAdult: false"
57
+ }) {
58
id
59
title {
60
romaji
@@ -70,7 +72,9 @@ export const useSearch = (text: string) => {
70
72
71
73
74
- results: media(type: MANGA, search: "${textToSearch}", isAdult: ${isAdult}) {
75
+ results: media(type: MANGA, search: "${textToSearch}"${
76
77
78
79
80
0 commit comments