-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
Describe the Bug
Adding an override for an Admin Component Block does not honour that change. For example, in the website template, if you edit a page, and add a layout (in this case, lets say a CTA), it by default shows the collapsible Admin Block which contains all the editable information. If you go to the CTA types, and add -
admin: { components: { Block { path: 'path/to/component#component } } }
Note: removing the path object, using jsx, or adding exportName do not fix this issue.
After generating the import-map and types, adding that CTA block still shows the default editable collapsible block. Hovering over the Block object, the type is defined as such: This will replace the entire block component, including the block header / collapsible.
Maybe my logic is wrong, but shouldn't that override?
Link to the code that reproduces this issue
https://github.com/joshAntoniuk/payload-template
Reproduction Steps
- Create website template.
- Create overriding component
- Edit the type of the object we are trying to overwrite with admin.components.Block
- Add that component to the editor in the admin panel
- Does not override
Which area(s) are affected? (Select all that apply)
area: core
Environment Info
Binaries:
Node: 24.5.0
npm: 11.5.1
Yarn: N/A
pnpm: 10.14.0
Relevant Packages:
payload: 3.56.0
next: 15.4.4
@payloadcms/email-nodemailer: 3.56.0
@payloadcms/graphql: 3.56.0
@payloadcms/live-preview: 3.56.0
@payloadcms/live-preview-react: 3.56.0
@payloadcms/next/utilities: 3.56.0
@payloadcms/payload-cloud: 3.56.0
@payloadcms/plugin-form-builder: 3.56.0
@payloadcms/plugin-nested-docs: 3.56.0
@payloadcms/plugin-redirects: 3.56.0
@payloadcms/plugin-search: 3.56.0
@payloadcms/plugin-seo: 3.56.0
@payloadcms/richtext-lexical: 3.56.0
@payloadcms/translations: 3.56.0
@payloadcms/ui/shared: 3.56.0
react: 19.1.0
react-dom: 19.1.0
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:40 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6041
Available memory (MB): 24576
Available CPU cores: 14