Comments (4)
Thank you for the report @richardvanbergen. Are you able to provide the collection config or the subset that contains the localized field within a block?
from payload.
Hi, it's basically a page collection that looks like this:
const PageCollection: CollectionConfig = {
slug: 'page',
admin: {
},
labels: {
singular: 'Page',
plural: 'Pages',
},
fields: [
...PageMetaFields,
{
name: 'content',
label: 'Content Blocks',
type: 'blocks',
labels: {
singular: 'Layout',
plural: 'Layouts',
},
blocks: [
HeroSchema,
ClientListSchema,
CarouselSchema,
IllustratedCopySchema,
ContentGridSchema, // <-- this guy right here caused the error
HubspotFormSchema,
CtaBannerSchema,
ProcessStepsSchema,
],
},
],
}
export default PageCollection
The block that caused the error looks like this:
const ContentGridSchema: Block = {
slug: 'contentGrid',
imageURL: 'https://brightvision.fra1.cdn.digitaloceanspaces.com/admin-preview-images/rows-and-columns.png',
imageAltText: 'A component for organizing content into flexible rows and columns.',
labels: {
singular: 'Rows & Columns',
plural: 'Rows & Columns',
},
fields: [
{
type: 'array',
name: 'grids',
fields: [
{
type: 'row',
fields: [
{
type: 'number',
label: 'Maximum Columns',
name: 'numberOfColumns',
admin: {
width: '50%',
},
},
],
},
{
type: 'array',
name: 'columns', // <-- more specifically this guy
fields: [
{
type: 'richText',
name: 'content',
localized: true,
},
],
},
],
},
],
}
export default ContentGridSchema
And this is my payload config with the internationalization:
// ... bunch of imports
export default buildConfig({
serverURL: process.env.PAYLOAD_PUBLIC_SERVER_URL,
collections: [
Page,
Client,
Testimonial,
MediaVideo,
MediaImage,
APIUser,
Link,
HubspotFormEmbed,
],
globals: [
SiteConfig,
MainMenu,
Error404,
Error500,
],
localization: {
locales: [
'en',
'dk',
'sv',
'no',
'fi',
],
defaultLocale: 'en',
fallback: true,
},
admin: {
components: {
graphics: {
Icon: Favicon,
Logo: Logo,
},
views: {
Dashboard,
},
},
},
})
from payload.
Let me know if you need any more information.
from payload.
This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.
from payload.
Related Issues (20)
- Multi Edit not working for upload (image) field HOT 3
- slate import in the "Generating HTML" section of Slate/Rich Text should be unnecessary
- Payload .find() does not fetch fresh data HOT 3
- [UI][iOS][Android] Logout button hides behind the bottom navbar on mobile devices
- HasMany relationship with localized:true failes to empty the relationship
- Cannot read properties of undefined (reading 'id') after deleting image HOT 2
- user is undefined in BeforeDashboard component after login HOT 2
- Incorrect package reference for Vercel Postgres database adapter HOT 2
- Follow-up on Invalid or unexpected token error
- useField on array fields return array length as value and row[] showing only IDs
- Edit and Live Preview Views Not Persisting State HOT 3
- Payload cannot load a bare module specifier as config
- Preview button not routing correctly for Pages collection despite working Live Preview HOT 5
- Bulk upload works despite filterOptions when uploading directly to a field
- Tsx folder in temp directory filled with a lot of files
- Can not get updated generated HTML on beforeChange hook for field type ('richText') in lexical editor
- Unnecessary `isEnabled` computations on Toolbar items HOT 1
- GraphQL collection `id` field should be non-nullable HOT 3
- Row fields misaligned vertically when labels occupy different number of lines due to their length
- Cannot add custom logo HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from payload.