Skip to content

Commit

Permalink
update selected option
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanDylann committed Dec 24, 2024
1 parent b8441be commit 0d792b5
Showing 1 changed file with 4 additions and 0 deletions.
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 0d792b5

Please sign in to comment.