Ubah nilai dalam array bereaksi
setOfficeSpace([...officeSpace, { ...item, number: 1, type: item.key }]);
Mystic Dev
setOfficeSpace([...officeSpace, { ...item, number: 1, type: item.key }]);