Zmień wartość w tablicy React
setOfficeSpace([...officeSpace, { ...item, number: 1, type: item.key }]);
Mystic Dev
setOfficeSpace([...officeSpace, { ...item, number: 1, type: item.key }]);