feat: pass headers to indexer

This commit is contained in:
DIYgod
2023-05-23 17:19:56 +01:00
parent fa258533ad
commit d522e606ff
2 changed files with 9 additions and 7 deletions
+1 -7
View File
@@ -7,7 +7,7 @@ import { CommentItem } from "~/components/common/CommentItem"
import { useTranslation } from "~/lib/i18n/client"
import { ExpandedNote } from "~/lib/types"
import { cn } from "~/lib/utils"
import { useGetComments, useGetPage } from "~/queries/page"
import { useGetComments } from "~/queries/page"
export const Comment: React.FC<{
page?: ExpandedNote
@@ -19,12 +19,6 @@ export const Comment: React.FC<{
})
const { t } = useTranslation("common")
// For viewing statistics
useGetPage({
characterId: page?.characterId,
noteId: page?.noteId,
})
const data = comments.data?.pages.filter(
(page) => (page?.list?.length ?? 0) > 0,
)