mquan / turbo-issues

bug tracking for turbo
0 stars 0 forks source link

ember-data delete dirty record causes error #143

Open mquan opened 11 years ago

mquan commented 11 years ago
  1. Have an order with item of quantity = 2, refresh order page
  2. decrease the quantity (this dirties the item)
  3. decrease one more time, this will attempt to delete item, error is thrown
Uncaught TypeError: Cannot call method 'remove' of undefined 

This only happens on first load, if I just go to menu and click around or create a new item then delete is ok. This may already be fixed in the latest ember-data

mquan commented 11 years ago

Temporarily fix by creating a dummy item on orders loaded. Probably already fixed in latest ember-data