whenever I try to create/edit new collection item in admin panel, i get an alert with text TypeError: e.tagName.toLowerCase is not a function
I have a multiple collections but troubles only with this one
import { type CollectionConfig } from "payload";
export const Tags: CollectionConfig = {
slug: 'tags',
access: {
read: () => true,
},
admin: {
useAsTitle: 'tagName',
},
fields: [
{
name: 'tagName',
label: 'Displayed tag name',
type: 'text',
localized: true,
required: true,
},
{
name: 'tagCategory',
label: 'Category',
type: 'select',
options: [
'sector',
'region',
'product'
]
},
{
name: 'tagId',
label: 'Tag that will be used for url queries. Enter tag without special symbols and space here',
type: 'text',
required: true
},
],
};