diff --git a/src/military/expert/fetch.js b/src/military/expert/fetch.js index b4a7ffc7..becee90a 100644 --- a/src/military/expert/fetch.js +++ b/src/military/expert/fetch.js @@ -3,7 +3,7 @@ import javaFetch from '../javaFetch'; let settings=JSON.parse(localStorage.chromesetting); -let actionUrl = settings.api_urls ? settings.api_urls.expert :'http://10.47.38.56:8088'; +let actionUrl = settings.api_urls && settings.api_urls.expert ? settings.api_urls.expert :'http://10.47.38.56:8088'; const service = javaFetch(actionUrl); export const httpUrl = actionUrl;