mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
ui_init: Don't store onboarding_steps state_data as current_user_param.
Earlier, onboarding_steps field of state_data was stored as current_user_params. Now, we store it separately in a data structure initialized in onboarding_steps.ts Reason: All the other state_data fields stored in current_user_params are attributes of UserProfile. So, it makes sense to store it separately. Fixes part of #30043.
This commit is contained in:
committed by
Tim Abbott
parent
915503df10
commit
32391c3d06
@@ -147,9 +147,6 @@ export function dispatch_normal_event(event) {
|
||||
|
||||
case "onboarding_steps":
|
||||
onboarding_steps.update_onboarding_steps_to_display(event.onboarding_steps);
|
||||
current_user.onboarding_steps = current_user.onboarding_steps
|
||||
? [...current_user.onboarding_steps, ...event.onboarding_steps]
|
||||
: event.onboarding_steps;
|
||||
break;
|
||||
|
||||
case "invites_changed":
|
||||
|
||||
Reference in New Issue
Block a user