I\'m running into a bug where I use the spread operator to delete an object property. I tested the code in the console and it works there but I\'m unclear why it\'s not working