const reduce = response.data.reduce((obj, v) => { obj[v.id] = { text: v.baseName, key: v.id }; return obj; }, {});