Skip to content

Payload config validation prevents custom dashboard component #94

Closed

Description

@DanRibbens

Bug Report

#93 (comment)
Payload Config admin.components.views is not passing validaiton even though it is valid:

components: {
      views: {
        Dashboard: () => <div>Hello</div>,
      },
    },

Expected Behavior

Payload should start and not throw a validation error.

Current Behavior

There is a validation error thrown on startup.

Possible Solution

change the payload config validation for admin.components.views.dashboard to have a custom component

Steps to Reproduce

  1. Create a project with a payload config that has admin.components.views.Dashboard set to a custom component
  2. start the app

Detailed Description

Payload v0.4.4

Activity

  1. github-actions commented on Sep 8, 2024

    @github-actions
    Contributor

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

  2. locked as resolved and limited conversation to collaborators on Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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