}`,
});
if (response.returnCode === 0) {
const {
[LECTURER_LIST_TAB]: lecturerTabType,
[LECTURER_ORGANIZATION_STATUS]: organizationTabType,
[TAX_TYPE]: taxType,
} = response.data;
const lecturerTabList = filterDefaultList(lecturerTabType);
const organizationTabList = filterDefaultList(organizationTabType);
const taxTypeList = filterDefaultList(taxType);
yield put({
type: 'updateState',
payload: {
dictionary: response.data,
lecturerTabList,
organizationTabList,
taxTypeList,
},
});
yield cb({ lecturerTabList, organizationTabList });
}
} catch (error) {
console.log(error);
}
},