Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save error after saving same card twice #45

Open
DavidDeSloovere opened this issue Aug 16, 2019 · 0 comments
Open

Save error after saving same card twice #45

DavidDeSloovere opened this issue Aug 16, 2019 · 0 comments

Comments

@DavidDeSloovere
Copy link
Contributor

DavidDeSloovere commented Aug 16, 2019

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant