Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot override default Cell component #7013

Open
mulfyx opened this issue Jul 2, 2024 · 0 comments
Open

Cannot override default Cell component #7013

mulfyx opened this issue Jul 2, 2024 · 0 comments
Labels
status: needs-triage Possible bug which hasn't been reproduced yet v2

Comments

@mulfyx
Copy link

mulfyx commented Jul 2, 2024

Link to reproduction

No response

Describe the Bug

It is currently impossible to set a custom Cell component. The documentation at https://payloadcms.com/docs/admin/components#cell-component does not provide clear instructions on how to achieve this.

ERROR (payload): There were 1 errors validating your Payload config
ERROR (payload): 1: Collection "reproduce" > "admin.components.Cell" is not allowed

To Reproduce

import { type CollectionConfig } from "payload/types";

export const Reproduce: CollectionConfig = {
	slug: "reproduce",
	admin: {
		components: {
			Cell: (props) => JSON.stringify(props),
		},
	},
	fields: [],
};

Payload Version

2.23.1

Adapters and Plugins

No response

@mulfyx mulfyx added status: needs-triage Possible bug which hasn't been reproduced yet v2 labels Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs-triage Possible bug which hasn't been reproduced yet v2
Projects
None yet
Development

No branches or pull requests

1 participant