twenty icon indicating copy to clipboard operation
twenty copied to clipboard

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

Open thaisguigon opened this issue 9 months ago • 2 comments

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?

thaisguigon avatar May 16 '24 13:05 thaisguigon