chore(SW-194): ContentPage Accordion
This commit is contained in:
@@ -25,6 +25,7 @@ export const contentPageQueryRouter = router({
|
||||
const { lang, uid } = ctx
|
||||
|
||||
const contentPageRefsData = await fetchContentPageRefs(lang, uid)
|
||||
|
||||
const contentPageRefs = validateContentPageRefs(
|
||||
contentPageRefsData,
|
||||
lang,
|
||||
@@ -33,8 +34,10 @@ export const contentPageQueryRouter = router({
|
||||
if (!contentPageRefs) {
|
||||
return null
|
||||
}
|
||||
//console.log("EYY", contentPageRefs.content_page.blocks[1])
|
||||
//console.log("EYY", contentPageRefs.content_page.blocks[0])
|
||||
const tags = generatePageTags(contentPageRefs, lang)
|
||||
|
||||
//console.log("tags", tags)
|
||||
getContentPageCounter.add(1, { lang, uid })
|
||||
console.info(
|
||||
"contentstack.contentPage start",
|
||||
@@ -83,7 +86,7 @@ export const contentPageQueryRouter = router({
|
||||
console.error(contentPage.error?.format())
|
||||
return null
|
||||
}
|
||||
|
||||
//console.log("HEJ2", contentPage.data.content_page.blocks[0])
|
||||
const tracking: TrackingSDKPageData = {
|
||||
pageId: contentPage.data.content_page.system.uid,
|
||||
lang: contentPage.data.content_page.system.locale as Lang,
|
||||
|
||||
Reference in New Issue
Block a user