Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodes committed Oct 26, 2023
1 parent 8163924 commit 6ab2d1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions addon/components/fetch-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { inject as service } from '@ember/service';
import { isEmpty } from '@ember/utils';
import { action } from '@ember/object';
import { action, set } from '@ember/object';
import { isArray } from '@ember/array';
import { assign } from '@ember/polyfills';
import { assert } from '@ember/debug';
import { timeout } from 'ember-concurrency';
import { restartableTask, dropTask } from 'ember-concurrency-decorators';
import { restartableTask } from 'ember-concurrency-decorators';

/**
* FetchSelectComponent is a Glimmer component responsible for rendering a
Expand Down Expand Up @@ -75,7 +75,7 @@ export default class FetchSelectComponent extends Component {
yield timeout(this.debounceDuration);
}

yield this.fetchOptions.perform(term, createOption);
yield this.fetchOptions.perform(term, options);
};

/**
Expand All @@ -88,7 +88,6 @@ export default class FetchSelectComponent extends Component {
@restartableTask({ withTestWaiter: true }) fetchOptions = function* (term, options = {}) {
// query might be an EmptyObject/{{hash}}, make it a normal Object
const query = assign({}, this.args.query);
const endpoint = this.endpoint;

if (term) {
set(query, 'query', term);
Expand Down
2 changes: 1 addition & 1 deletion addon/helpers/get-dot-prop.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ export default helper(function getDotProp([object, key]) {
if (object[key] === undefined) {
return null;
}

return object[key];
});

0 comments on commit 6ab2d1d

Please sign in to comment.