I populated a collection list through the API and I missed the _id field for the Content Link, so the data sent was:
{
"model": "Books"
}
Instead of
{
"model": "Books",
"_id": "123456"
}
I couldn't browse those items on the admin to delete them so I had to do a local override to fix the issue on modules/Content/assets/vue-components/field-content-item-link.js
Hi there!
I populated a collection list through the API and I missed the _id field for the Content Link, so the data sent was:
Instead of
I couldn't browse those items on the admin to delete them so I had to do a local override to fix the issue on modules/Content/assets/vue-components/field-content-item-link.js
On line 26 I added safe browsing and it worked:
Before:
return
${value._id.substr(-5)}After:
return
${value?._id?.substr(-5)}