mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 10:42:45 +08:00
FIX: Track User.status
property (#26941)
Fixes a bug I stumbled upon in dev env: ``` Error: Assertion Failed: You attempted to update <discourse@model:user::ember337>.status to "[object Object]", but it is being tracked by a tracking context, such as a template, computed property, or observer. In order to make sure the context updates properly, you must invalidate the property when updating it. You can mark the property as `@tracked`, or use `@ember/object#set` to do this. ```
This commit is contained in:
parent
7bc7ad45bb
commit
1b80ee9eb7
|
@ -177,6 +177,7 @@ export default class User extends RestModel.extend(Evented) {
|
|||
@service userTips;
|
||||
|
||||
@tracked do_not_disturb_until;
|
||||
@tracked status;
|
||||
|
||||
@userOption("mailing_list_mode") mailing_list_mode;
|
||||
@userOption("external_links_in_new_tab") external_links_in_new_tab;
|
||||
|
|
Loading…
Reference in New Issue
Block a user