Skip to content

Commit 0d792b5

Browse files
committed
update selected option
1 parent b8441be commit 0d792b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pages/workspace/WorkspaceProfilePlanTypePage.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ function WorkspaceProfilePlanTypePage({policy}: WithPolicyProps) {
4949
OpenWorkspacePlanPage(policyID);
5050
}, [policyID]);
5151

52+
useEffect(() => {
53+
setCurrentPlan(policy?.type);
54+
}, [policy?.type]);
55+
5256
const workspacePlanTypes = Object.values(CONST.POLICY.TYPE)
5357
.filter((type) => type !== CONST.POLICY.TYPE.PERSONAL)
5458
.map<WorkspacePlanTypeItem>((policyType) => ({

0 commit comments

Comments
 (0)