From 50cc073d2f2b4cfa8af08b1e73cf2d01bc047f1f Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 2 Dec 2015 10:25:04 -0700 Subject: [PATCH] Prevent null-related error in new strain, linting --- app/pods/protected/strains/strain-form/component.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/pods/protected/strains/strain-form/component.js b/app/pods/protected/strains/strain-form/component.js index 3931156..9090500 100644 --- a/app/pods/protected/strains/strain-form/component.js +++ b/app/pods/protected/strains/strain-form/component.js @@ -9,7 +9,7 @@ export default Component.extend(SetupMetaData, { isNew: null, isDirty: false, speciesList: null, - allCharacteristics: null, + allCharacteristics: [], updateQueue: [], deleteQueue: [], @@ -37,8 +37,8 @@ export default Component.extend(SetupMetaData, { // Dropdown menu characteristics: [], - sortParams: ['characteristicTypeName', 'sortOrder', 'characteristicName'], - sortedCharacteristics: sort('characteristics', 'sortParams'), + charSortParams: ['characteristicTypeName', 'sortOrder', 'characteristicName'], + sortedCharacteristics: sort('characteristics', 'charSortParams'), setupCharacteristics: Ember.on('init', function() { const tempArray = this._resetArray(this.get('allCharacteristics')); this.set('characteristics', tempArray);