Clean up no measurements on record
This commit is contained in:
parent
50cc073d2f
commit
658304f728
3 changed files with 12 additions and 15 deletions
|
@ -104,7 +104,8 @@ export default Component.extend(SetupMetaData, {
|
|||
},
|
||||
|
||||
addCharacteristic: function() {
|
||||
return this.attrs['add-characteristic']();
|
||||
const measurement = this.attrs['add-characteristic']();
|
||||
this.get('measurements').pushObject(measurement);
|
||||
},
|
||||
|
||||
saveMeasurement: function(measurement, properties) {
|
||||
|
|
Reference in a new issue