TypeError: Cannot read properties of undefined (reading 'attributes')

```
TypeError: Cannot read properties of undefined (reading 'attributes')
    at getMainField (http://localhost:1337/node_modules/.strapi/vite/deps/chunk-ATQ5FF2I.js?v=e201b2f3:985:90)
    at http://localhost:1337/node_modules/.strapi/vite/deps/chunk-ATQ5FF2I.js?v=e201b2f3:1146:20
    at Array.map (<anonymous>)
    at http://localhost:1337/node_modules/.strapi/vite/deps/chunk-ATQ5FF2I.js?v=e201b2f3:1132:18
    at Array.map (<anonymous>)
    at convertEditLayoutToFieldLayouts (http://localhost:1337/node_modules/.strapi/vite/deps/chunk-ATQ5FF2I.js?v=e201b2f3:1131:15)
    at http://localhost:1337/node_modules/.strapi/vite/deps/ComponentConfigurationPage-DKuCF_uX-VP5R4PYG.js?v=e201b2f3:236:17
    at Array.reduce (<anonymous>)
    at formatEditLayout (http://localhost:1337/node_modules/.strapi/vite/deps/ComponentConfigurationPage-DKuCF_uX-VP5R4PYG.js?v=e201b2f3:233:67)
    at http://localhost:1337/node_modules/.strapi/vite/deps/ComponentConfigurationPage-DKuCF_uX-VP5R4PYG.js?v=e201b2f3:142:32
```
      