You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps we can replace [object Object] with identifier.type || identifier instead. Or stringify the identifier object but that not print out pretty.
Here is another solution for that error.
const identifierOutput = typeof identifier === 'object' ? `id: ${identifier.id}, type: ${identifier.type}` : identifier;
throw new Error(`Failed to update the 'id' for the RecordIdentifier '${identifierOutput} to '${resourceData.id}', because that id is already in use by '${matchedIdentifierOutput'`)
I see
Failed to update the 'id' for the RecordIdentifier '[object Object]' to '27830', because that id is already in use by '[object Object]'
.[object Object]
- is not meaningful debug message, and it's tricky to track down issue (modelType? payload?)The text was updated successfully, but these errors were encountered: