 {         dispatch({ type: newsTypes.FETCH_WP_LATEST_NEWS_REQUEST })         newsApi.fetchLatestNews(params)             .then(response => {                 dispatch({                     type: newsTypes.FETCH_WP_LATEST_NEWS_SUCCESS,                     payload: response.data,                 })             })             .catch(error => {                 dispatch({                     type: newsTypes.FETCH_WP_LATEST_NEWS_FAILURE,                     payload: error,                 })             })     } }