fix: resolve contact form placeholders, restore process block layout, and fix testimonials carousel scroll logic
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import { getPayload } from 'payload'
|
||||
import configPromise from '../src/payload.config'
|
||||
|
||||
async function run() {
|
||||
const payload = await getPayload({ config: configPromise })
|
||||
|
||||
const resPl = await payload.find({
|
||||
collection: 'pages',
|
||||
where: { slug: { equals: 'jak-sie-umowic' } },
|
||||
locale: 'pl',
|
||||
depth: 1
|
||||
})
|
||||
|
||||
const resDe = await payload.find({
|
||||
collection: 'pages',
|
||||
where: { slug: { equals: 'jak-sie-umowic' } },
|
||||
locale: 'de',
|
||||
depth: 1
|
||||
})
|
||||
|
||||
console.log("=== PL ===")
|
||||
const processPl = resPl.docs[0]?.layout?.find(b => b.blockType === 'process')
|
||||
console.log(JSON.stringify(processPl, null, 2))
|
||||
|
||||
console.log("\\n=== DE ===")
|
||||
const processDe = resDe.docs[0]?.layout?.find(b => b.blockType === 'process')
|
||||
console.log(JSON.stringify(processDe, null, 2))
|
||||
|
||||
process.exit(0)
|
||||
}
|
||||
run().catch(console.error)
|
||||
Reference in New Issue
Block a user