Skip to content

Commit

Permalink
Merge pull request #54501 from DylanDylann/infinity-loading
Browse files Browse the repository at this point in the history
update correct field
  • Loading branch information
techievivek authored Dec 24, 2024
2 parents 8b7096f + 0d792b5 commit dc784de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/Policy/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3479,7 +3479,7 @@ function downgradeToTeam(policyID: string) {
onyxMethod: Onyx.METHOD.MERGE,
key: `policy_${policyID}`,
value: {
isPendingUpgrade: false,
isPendingDowngrade: false,
type: policy?.type,
},
},
Expand Down
4 changes: 4 additions & 0 deletions src/pages/workspace/WorkspaceProfilePlanTypePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ function WorkspaceProfilePlanTypePage({policy}: WithPolicyProps) {
OpenWorkspacePlanPage(policyID);
}, [policyID]);

useEffect(() => {
setCurrentPlan(policy?.type);
}, [policy?.type]);

const workspacePlanTypes = Object.values(CONST.POLICY.TYPE)
.filter((type) => type !== CONST.POLICY.TYPE.PERSONAL)
.map<WorkspacePlanTypeItem>((policyType) => ({
Expand Down

0 comments on commit dc784de

Please sign in to comment.