Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collection List Blank on broken Content Link #1505

Open
gonzacaminos opened this issue Jul 25, 2023 · 0 comments
Open

Collection List Blank on broken Content Link #1505

gonzacaminos opened this issue Jul 25, 2023 · 0 comments

Comments

@gonzacaminos
Copy link

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:

{
 "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

On line 26 I added safe browsing and it worked:

Before:
return${value._id.substr(-5)}

After:
return${value?._id?.substr(-5)}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant