[Multi-links field] Updating a Links field displays an Error #5437
Closed
Description
Bug Description
When a Links field is updated, an error is displayed:
Expected behavior
The update is successful.
Technical inputs
Seems to be linked to Apollo cache. Upgrading @apollo/client
to v3.10.4 prints a warning in the console instead of throwing an error:
It might be because the Links field seems to somehow have a __typename
property in Apollo's cache, so Apollo considers it as a record and tries to match the object's cache with an id, but the Links field value has no id so it can't find it.
=> Find where this __typename
is added and see if removing it from the Links object in the cache fixes this.
Maybe in getRecordNodeFromRecord
?
Metadata
Assignees
Labels
No labels
Type
Projects
Status
✅ Done