Skip to content

Commit 6097a92

Browse files
committed
Fix linting error (#775)
1 parent e3c69d6 commit 6097a92

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

app/components/search-input/dropdown.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
/* eslint-disable ember/no-computed-properties-in-native-classes, ember/classic-decorator-hooks */
21
import {
32
classNames,
43
attributeBindings,
54
tagName,
65
} from '@ember-decorators/component';
7-
import { set, get, computed } from '@ember/object';
6+
import { get } from '@ember/object';
87
import Component from '@ember/component';
98
import { A } from '@ember/array';
9+
import { tracked } from '@glimmer/tracking';
1010

1111
@tagName('span')
1212
@classNames('ds-dropdown-menu', 'ds-with-1')
@@ -17,9 +17,11 @@ export default class Dropdown extends Component {
1717

1818
isVisible = false;
1919

20-
init() {
21-
super.init(...arguments);
22-
set(this, 'results', A());
20+
@tracked results;
21+
22+
constructor() {
23+
super(...arguments);
24+
this.results = A();
2325
}
2426

2527
// show
@@ -32,7 +34,6 @@ export default class Dropdown extends Component {
3234
* }
3335
* }
3436
*/
35-
@computed('results.[]')
3637
get _groupedResults() {
3738
if (!get(this, 'results.length')) {
3839
return {};

0 commit comments

Comments
 (0)