Prevent null-related error in new strain, linting

This commit is contained in:
Matthew Dillon 2015-12-02 10:25:04 -07:00
parent 66c185e441
commit 50cc073d2f

View file

@ -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);