Skip to content

Commit

Permalink
Fix: autocomplete options not displaying (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieKimani1 committed Feb 12, 2021
1 parent 74d0401 commit 100ddf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/services/actions/autocomplete-action-creators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export function fetchAutocompletePending(): any {

export function fetchAutoCompleteOptions(url: string, version: string): Function {
return async (dispatch: Function, getState: Function) => {
const devxApi = getState().devxApi;
const devxApiUrl = getState().devxApi.baseUrl;
dispatch(fetchAutocompletePending());
const autoOptions = await suggestions.getSuggestions(url, devxApi, version);
const autoOptions = await suggestions.getSuggestions(url, devxApiUrl, version);
if (autoOptions) {
return dispatch(fetchAutocompleteSuccess(autoOptions));
}
Expand Down

0 comments on commit 100ddf1

Please sign in to comment.