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,
|
isNew: null,
|
||||||
isDirty: false,
|
isDirty: false,
|
||||||
speciesList: null,
|
speciesList: null,
|
||||||
allCharacteristics: null,
|
allCharacteristics: [],
|
||||||
updateQueue: [],
|
updateQueue: [],
|
||||||
deleteQueue: [],
|
deleteQueue: [],
|
||||||
|
|
||||||
|
@ -37,8 +37,8 @@ export default Component.extend(SetupMetaData, {
|
||||||
|
|
||||||
// Dropdown menu
|
// Dropdown menu
|
||||||
characteristics: [],
|
characteristics: [],
|
||||||
sortParams: ['characteristicTypeName', 'sortOrder', 'characteristicName'],
|
charSortParams: ['characteristicTypeName', 'sortOrder', 'characteristicName'],
|
||||||
sortedCharacteristics: sort('characteristics', 'sortParams'),
|
sortedCharacteristics: sort('characteristics', 'charSortParams'),
|
||||||
setupCharacteristics: Ember.on('init', function() {
|
setupCharacteristics: Ember.on('init', function() {
|
||||||
const tempArray = this._resetArray(this.get('allCharacteristics'));
|
const tempArray = this._resetArray(this.get('allCharacteristics'));
|
||||||
this.set('characteristics', tempArray);
|
this.set('characteristics', tempArray);
|
||||||
|
|
Reference in a new issue