From f7f04fd25cf4d93c5a718288933bde508e23dd93 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 19 Oct 2015 15:26:04 -0700 Subject: [PATCH] Fixes #33 --- .../strains/show/measurements-table-row/component.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/pods/protected/strains/show/measurements-table-row/component.js b/app/pods/protected/strains/show/measurements-table-row/component.js index d17a831..9c151fb 100644 --- a/app/pods/protected/strains/show/measurements-table-row/component.js +++ b/app/pods/protected/strains/show/measurements-table-row/component.js @@ -36,6 +36,10 @@ export default Ember.Component.extend({ }, delete: function() { + let char = this.get('row.characteristic'); + if (char.get('isNew')) { + char.destroyRecord(); + } this.get('row').destroyRecord(); }