fix: change bad JSON.stringify:s
This commit is contained in:
@@ -76,16 +76,17 @@ export const navigationQueryRouter = router({
|
||||
)
|
||||
|
||||
if (!refsResponse.data) {
|
||||
const notFoundError = notFound(refsResponse)
|
||||
console.error(
|
||||
"contentstack.myPages.navigation.refs not found error",
|
||||
JSON.stringify({
|
||||
query: {
|
||||
lang,
|
||||
},
|
||||
error: refsResponse,
|
||||
error: { code: notFoundError.code },
|
||||
})
|
||||
)
|
||||
throw notFound(refsResponse)
|
||||
throw notFoundError
|
||||
}
|
||||
|
||||
const validatedMyPagesNavigationRefs =
|
||||
@@ -127,13 +128,14 @@ export const navigationQueryRouter = router({
|
||||
)
|
||||
|
||||
if (!response.data) {
|
||||
const notFoundError = notFound(response)
|
||||
console.error("contentstack.myPages.navigation not found error", {
|
||||
query: {
|
||||
lang,
|
||||
},
|
||||
error: response,
|
||||
error: { code: notFoundError.code },
|
||||
})
|
||||
throw notFound(response)
|
||||
throw notFoundError
|
||||
}
|
||||
|
||||
const validatedMyPagesNavigation = navigationPayloadSchema.safeParse(
|
||||
|
||||
Reference in New Issue
Block a user