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;