Skip to content

[Multi-links field] Updating a Links field displays an Error #5437

Closed
@thaisguigon

Description

Bug Description

When a Links field is updated, an error is displayed:

Image

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:

Image

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
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions