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

Fields are not rendered when type Array has a custom field #9888

Closed
ruslan-amboss opened this issue Dec 11, 2024 · 2 comments · Fixed by #10024
Closed

Fields are not rendered when type Array has a custom field #9888

ruslan-amboss opened this issue Dec 11, 2024 · 2 comments · Fixed by #10024
Assignees

Comments

@ruslan-amboss
Copy link

Describe the Bug

array-fields-not-rendered.mov

Fields are not rendered when type Array has a custom field which can be just a wrapper for ArrayField

Please watch the video and check the code sample

Link to the code that reproduces this issue

https://github.com/ruslan-amboss/payload-test/tree/custom-array-field-lost/test/_community/collections/Posts

Reproduction Steps

fields: [
    {
      type: "array",
      name: "testPayload",
      admin: {
        components: {
          Field: "./globals/ArrayFieldCustom.tsx#ArrayFieldCustom",
        },
      },
      fields: [
        {
          name: 'itemName',
          type: "text",
        },
      ],
    },
  ],
"use client";

import type { ArrayFieldClientProps } from "payload";
import { ArrayField } from "@payloadcms/ui";

export const ArrayFieldCustom = (props: ArrayFieldClientProps)=> {
  return (
    <>
      <ArrayField
        {...props}
      />
    </>
  );
}

Which area(s) are affected? (Select all that apply)

Not sure

Environment Info

Payload: 3.5.0
Next: 15.0.4
@ruslan-amboss ruslan-amboss added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction labels Dec 11, 2024
@jacobsfletch jacobsfletch self-assigned this Dec 17, 2024
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Dec 17, 2024
Copy link
Contributor

🚀 This is included in version v3.9.0

Copy link
Contributor

This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants