Skip to content

Commit d6ce519

Browse files
committed
Fix Prettifier error, review comments
1 parent e7c66bb commit d6ce519

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/components/api-index-filter.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable ember/no-computed-properties-in-native-classes */
12
import { classNames } from '@ember-decorators/component';
23
import { computed } from '@ember/object';
34
import Component from '@ember/component';
@@ -24,10 +25,8 @@ export default class ApiIndexFilter extends Component {
2425
}
2526

2627
filterItems(itemType) {
27-
let items =
28-
this.model[`${itemType}`] === undefined
29-
? []
30-
: this.model[`${itemType}`];
28+
let items =
29+
this.model[itemType] === undefined ? [] : this.model[`${itemType}`];
3130
if (!this.filterData.showInherited) {
3231
items = items.filter((item) => item.inherited !== true);
3332
}

app/components/api-index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable ember/no-computed-properties-in-native-classes */
12
import { computed } from '@ember/object';
23
import Component from '@ember/component';
34

0 commit comments

Comments
 (0)