Prevent null-related error in new strain, linting
This commit is contained in:
parent
66c185e441
commit
50cc073d2f
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue