magic-cards icon indicating copy to clipboard operation
magic-cards copied to clipboard

Save error after saving same card twice

Open DavidDeSloovere opened this issue 6 years ago • 0 comments

Found this one, by accident. Save card twice without changing anything. Latest docker image to date. Chrome 76.

magiccards-savetwiceerror

Uncaught Error: Store error: the application attempted to write an object with no provided id but the store already contains an id of Card:1565936604 for this object. The selectionSet that was trying to be written is:
updateCard(id: $id, input: $cardInput) {
  id
  code
  type
  action
  title
  subtitle
  artURL
  uri
  __typename
}
    at c (writeToStore.js:296)
    at writeToStore.js:120
    at Array.forEach (<anonymous>)
    at r (writeToStore.js:113)
    at o (writeToStore.js:91)
    at t.write (inMemoryCache.js:95)
    at store.js:114
    at Array.forEach (<anonymous>)
    at store.js:114
    at t.performTransaction (inMemoryCache.js:147)

DavidDeSloovere avatar Aug 16 '19 12:08 DavidDeSloovere