Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Custom select UI element- path undefined

default discord avatar
__dslast year

Using this:


    {
      name: 'stripeLink',
      type: 'ui',
      admin: {
        components: {
          Field: StripeProducts,
        },
      },


and within my custom component

StripeProducts

;


export const StripeProducts: React.FC<StripeProductsProps> = ({ path }) => {


path

is coming up as undefined.

props

is a copy of that object (admin). How would i pull

path

down? Using next-payload



Just got a bot answer 🙂

When specifying a UI field type, the path property is not provided. It is only available for other field types.
    Star on GitHub

    Star

    Chat on Discord

    Discord

    online

    Can't find what you're looking for?

    Get dedicated engineering support directly from the Payload team.