const subLocationTypes = (location.subLocationTypes || []).reduce((add, cur) => { add[cur.key] = cur.value; return add; }, {});