function doFetchCompany(companyId) {
return async dispatch => {
dispatch({ type: fetchStart })
try {
const [
mainResponse,
otherResponse
] = await Promise.all(getCompany(companyId), getOtherData(companyId))
const mainData = await mainResponse.json()
const otherData = await otherResponse.json()
const filteredFields = [...mainData.FilterredFields, ...otherData.FilterredFields]
const viewableFields = [...mainData.ViewableFields, ...otherData.ViewableFields]