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:
Prakhar Pratyush
2024-06-03 12:41:07 +05:30
committed by Tim Abbott
parent 915503df10
commit 32391c3d06
5 changed files with 28 additions and 26 deletions

View File

@@ -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":