#Tab field error: “Cannot use 'in' operator to search for 'name' in undefined”

1 messages · Page 1 of 1 (latest)

keen marsh
#

I'm using a Global for a site config options, but I'm getting an error from Payload. It looks like it is not able to read the tab for some reason, in tabHasName ?

import { GlobalConfig } from "payload";

const Configurations: GlobalConfig = {
  slug: "configurations",
  fields: [
    {
      type: "tabs",
      tabs: [
        {
          name: "commons",
          label: {
            en: "Commons",
            pt: "Comuns",
          },
          fields: [
            {
              name: "textField",
              type: "text",
            },
          ],
        },
      ],
    },
  ],
};

export default Configurations;
silent sailBOT
weary jay
#

Hello,
I've got the same issue. Did you find any solution ?

keen marsh
deep kayak
#

i got the same issue here

lilac fog
#

I'll look into what's happening here

#

@deep kayak @weary jay @keen marsh

Can I get a Payload version here?

#

And is it just Globals?

deep kayak
#

i got it happening on a collection

#

i am on 3.9.0

#

i ended up just deleting the document and recreating it

lilac fog
deep kayak
#

yeah

#

also tried restarting the server but didnt work

deep kayak
weary jay
#

i upgraded the payload version to the latest and it's ok for me now