handleSaveDefault = () => {
let { Default, ...rest } = this.state.views;
this.handleViewMenuClose();
let setState = () => {
return this.setState({
views: { Default: [...this.state.selectedFields], ...rest },
});
};
This is working fine in chrome, but in Edge I get an error Expected identifier, string or number
pointing to the ...rest in let { Default, ...rest } = this.state.views;
I read that ...rest wasn't supported in older versions of Edge but now it should be. I have updated Windows but still the error persists. I have babel installed and it shows up in my package-lock.json but not in package.json.
Is there a way to get this to work or do I have to create my own looping workaround?