fix: add heading and subtitle to overview table
This commit is contained in:
@@ -121,6 +121,7 @@ const accountPageContentItem = z.discriminatedUnion("__typename", [
|
||||
|
||||
export const validateAccountPageSchema = z.object({
|
||||
account_page: z.object({
|
||||
heading: z.string().nullable(),
|
||||
url: z.string(),
|
||||
title: z.string(),
|
||||
content: z.array(accountPageContentItem),
|
||||
|
||||
@@ -15,6 +15,7 @@ import {
|
||||
import { removeEmptyObjects } from "../../utils"
|
||||
import {
|
||||
type AccountPage,
|
||||
AccountPageDataRaw,
|
||||
AccountPageRefsDataRaw,
|
||||
validateAccountPageRefsSchema,
|
||||
validateAccountPageSchema,
|
||||
@@ -62,7 +63,7 @@ export const accountPageQueryRouter = router({
|
||||
generateTag(lang, validatedAccountPageRefs.data.account_page.system.uid),
|
||||
].flat()
|
||||
|
||||
const response = await request<AccountPageRefsDataRaw>(
|
||||
const response = await request<AccountPageDataRaw>(
|
||||
GetAccountPage,
|
||||
{
|
||||
locale: lang,
|
||||
|
||||
Reference in New Issue
Block a user