- client: Clear result of checking the filtering result after moving to another page
This commit is contained in:
@@ -164,11 +164,17 @@ export const checkHostRequest = createAction('CHECK_HOST_REQUEST');
|
||||
export const checkHostFailure = createAction('CHECK_HOST_FAILURE');
|
||||
export const checkHostSuccess = createAction('CHECK_HOST_SUCCESS');
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {object} host
|
||||
* @param {string} host.name
|
||||
* @returns {undefined}
|
||||
*/
|
||||
export const checkHost = host => async (dispatch) => {
|
||||
dispatch(checkHostRequest());
|
||||
try {
|
||||
const data = await apiClient.checkHost(host);
|
||||
const [hostname] = Object.values(host);
|
||||
const { name: hostname } = host;
|
||||
|
||||
dispatch(checkHostSuccess({
|
||||
hostname,
|
||||
|
||||
Reference in New Issue
Block a user