Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

check if id is passed as a query parameter and dont add if it is #115

Closed
wants to merge 1 commit into from

Conversation

jnylund
Copy link

@jnylund jnylund commented Jan 16, 2016

At the end of the tutorial a "optimistic update" option is added which passes the id to the server. In the current code the json file gets 2 id attributes in it. This check should prevent it.

At the end of the tutorial a "optimistic update" option is added which passes the id to the server. In the current code the json file gets 2 id attributes in it. This check should prevent it.
@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

@jnylund
Copy link
Author

jnylund commented Jan 16, 2016

Ok, I signed the CLA

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@zpao
Copy link
Member

zpao commented Jan 24, 2016

Good catch. I'm going to fix this a bit differently though so we always use the server-generated id. Thanks!

@zpao zpao closed this Jan 24, 2016
zpao added a commit that referenced this pull request Jan 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants