Pretty sure this should work assuming this.option.name is a string literal and this.option is an object.
this.storage.set(option.name, this.option);
may not work if option.name is undefined as it says in the error. Maybe make it this.option.name?
Pretty sure this should work assuming this.option.name is a string literal and this.option is an object.
this.storage.set(option.name, this.option);
may not work if option.name is undefined as it says in the error. Maybe make it this.option.name?