From 100ddf1e0f5ff3c0cb91d5623e9cc754159f7196 Mon Sep 17 00:00:00 2001 From: Maggie Kimani Date: Fri, 12 Feb 2021 14:07:45 +0300 Subject: [PATCH] Fix: autocomplete options not displaying (#847) --- src/app/services/actions/autocomplete-action-creators.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/services/actions/autocomplete-action-creators.ts b/src/app/services/actions/autocomplete-action-creators.ts index 3254e6fcf..2fcdfda82 100644 --- a/src/app/services/actions/autocomplete-action-creators.ts +++ b/src/app/services/actions/autocomplete-action-creators.ts @@ -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)); }