Pizza-and-Bier / lunafest-dyb-frontend

Client-facing code for the LUNAFEST silent auction webapp.
1 stars 1 forks source link

Deleting an item that hasn't been bid on somtimes throws error #59

Open cbierman opened 6 years ago

cbierman commented 6 years ago

This is because the "key" property isn't set on creation. We should probably just set it, and ensure the key before we delete it. It'll be available from the url as an alternative.

pizzimathy commented 6 years ago

Do you want me to work on this one?

cbierman commented 6 years ago

yeah sure if you want to. For creation it'll be in the "new-item" component, and for the delete one it'll be somewhere in the "edit-item" component

hmu on Slack if you have any questions

cbierman commented 6 years ago

Ooof I lied on creation since we won't have it initially, we'll just need to set the key we get back from the Firebase push()