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

Cannot save updates on M2A child items. #11310

Closed
3 tasks done
jorgefelico opened this issue Jan 28, 2022 · 1 comment
Closed
3 tasks done

Cannot save updates on M2A child items. #11310

jorgefelico opened this issue Jan 28, 2022 · 1 comment

Comments

@jorgefelico
Copy link

jorgefelico commented Jan 28, 2022

Preflight Checklist

Describe the Bug

When I create a collection that has child collections via M2A relationship, the child collections save initially without any issues , however when I go edit the child collection within the parent, The updates I make are not reflected on screen nor on the database. There's also a console error displaying.

To Reproduce

Create two collections, make one collection have a Many to Any relationship with the other collection. Create a parent entry and add a child item of the other collection. Once the M2A item has been saved on the parent collection, go back and try to edit it.
PeDeoXGxeW

Errors Shown

vendor.9c15ff54.js:5 TypeError: Cannot create property 'content' on string '17'
    at Proxy.A (index.3a276397.entry.js:43:69915)
    at onUpdate:modelValue (index.3a276397.entry.js:43:72473)
    at Nh (vendor.9c15ff54.js:5:656)
    at $1 (vendor.9c15ff54.js:5:735)
    at cB (vendor.9c15ff54.js:2:21133)
    at Proxy.v (index.3a276397.entry.js:43:62759)
    at HO.a.onUpdate:modelValue.t.<computed>.t.<computed> (index.3a276397.entry.js:43:65437)
    at Nh (vendor.9c15ff54.js:5:656)
    at $1 (vendor.9c15ff54.js:5:735)
    at cB (vendor.9c15ff54.js:2:21133)

What version of Directus are you using?

9.5.0

What version of Node.js are you using?

14.18.3

What database are you using?

MySQL 5.7.36

What browser are you using?

Chrome

What operating system are you using?

macOS & Windows 10

How are you deploying Directus?

running locally

@jorgefelico
Copy link
Author

Figured out it was an issue with the Sort field on the parent collection.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant