Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.
This repository was archived by the owner on Dec 18, 2023. It is now read-only.

TabbedUI breaks content fields with position: 'sidebar' #35

@omavi

Description

@omavi

The following logic doesn't account for fields that should end up in the sidebar:

plugin-seo/src/index.ts

Lines 82 to 98 in 348b519

const seoFieldsAsTabs: TabsField[] = [{
type: 'tabs',
tabs: [
// if the collection is already tab-enabled, spread them into this new tabs field
// otherwise create a new tab to contain this collection's fields
// either way, append a new tab for the SEO fields
...collection?.fields?.[0].type === 'tabs'
? collection?.fields?.[0]?.tabs : [{
label: collection?.labels?.singular || 'Content',
fields: [...(collection?.fields || [])]
}],
{
label: 'SEO',
fields: seoFields,
}
]
}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions