Skip to content

Commit 6c939b8

Browse files
committed
setting result in init isn't appreciated by dropdown result
1 parent cb02f90 commit 6c939b8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

app/components/search-input/dropdown-result.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Component from '@ember/component';
44

55
export default Component.extend({
66
// Public API
7-
result: null,
7+
result: Object.freeze({}),
88
role: 'option',
99
groupName: '',
1010
groupPosition: 0, // Index of this result in the grouped results
@@ -24,9 +24,4 @@ export default Component.extend({
2424
}),
2525
isSecondary: gt('groupPosition', 0),
2626

27-
init() {
28-
this.result = {};
29-
this._super(...arguments);
30-
}
31-
3227
});

0 commit comments

Comments
 (0)