Lets say I have a collection called sections. Creating a new card in the O2M field cards from sections item 15 like follows
{
"cards": [
{
"note": "Test card"
}
]
}
should result in the item being saved in the database as
| id | note | section |
|---|----------|--------|
| 1 | Test card | 15 |
Hey @rijkvanzanten
Maybe this is duplicate of https://github.com/directus/app/issues/1712
Please check https://github.com/directus/app/issues/1712#issuecomment-496875714
No, that particular issue was fixed in https://github.com/directus/app/pull/1804, but it doesn't take care of the problem listed above. It's a separate issue.
@rijkvanzanten
I take a pull from o2m branch of APP to replicate the issue. I was not able to Select Existing or Add New card from APP. There are some vue errors in the console.
(1) Error after Add New

(2) Error after Select Existing

After clicking on Select Existing I was able to get popup to select the cards but when I submit it with Done it throws an error.
So I tried to check the API directly. Which works as expected. It seems that there is some issue from the APP in passing the payload.
yesnoyesnoyesnoyesnoyesno
Most helpful comment
@rijkvanzanten
I take a pull from
o2mbranch ofAPPto replicate the issue. I was not able toSelect ExistingorAdd Newcard fromAPP. There are somevueerrors in the console.(1) Error after
Add New(2) Error after
Select ExistingAfter clicking on
Select ExistingI was able to get popup to select the cards but when I submit it withDoneit throws an error.So I tried to check the API directly. Which works as expected. It seems that there is some issue from the
APPin passing the payload.