User notification level revert after page reload

A recent commit caused an object { level: "muted" } to be passed to the server instead of a string value. I have a PR that fixes that issue, as well as the server throwing an error when the level param is not valid. For the review - it also fixes a JS deprecation due to overriding a computed property (by adding a set)

https://github.com/discourse/discourse/pull/16268

6 Likes