-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Description
Describe the bug
Can't delete a string attrribute from a collection type in the admin panel.
For the request type PUT /content-type-builder/content-types/application::product.product, I'm getting back a 400 response with the error message body as:
error: {
contentType: [
'contentType field cannot have keys not specified in the object shape'
]
}The attribute I'm trying to delete is a simple string type:
"pattern": {
"type": "string"
},
in my product collection type. What might be the source of error is the fact that I also already have a collection type called pattern.
Update: This error is actually more widespread than I thought. I can no longer perform updates to my product type (like adding a relation to another collection type), nor add in any new field at all through the admin panel, essentially bricking the entire plugin. Same error as above in both cases. I've also tried reverting to strapi 3.2.1, my last working version, to no avail.
Steps to reproduce the behavior
- Via the admin panel, navigate to the content-types builder and delete a
textattribute in a collection type. - Click "save". "Error occurred" shows.
Expected behavior
The attribute to be deleted successfully.
System
- Node.js version: v12.16.3
- NPM version: 6.14.4
- Strapi version: 3.2.3
- Database: Postgres
- Operating system: mac OS 10.15.6
Additional context
I don't believe this bug existed in previous versions. I just updated from 3.2.1 today, might be related to that.