From 0d792b555d614008c3d77032ac96709a35d219e6 Mon Sep 17 00:00:00 2001 From: DylanDylann Date: Tue, 24 Dec 2024 16:47:09 +0700 Subject: [PATCH] update selected option --- src/pages/workspace/WorkspaceProfilePlanTypePage.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/workspace/WorkspaceProfilePlanTypePage.tsx b/src/pages/workspace/WorkspaceProfilePlanTypePage.tsx index 35c184d72707..253f64d1574f 100644 --- a/src/pages/workspace/WorkspaceProfilePlanTypePage.tsx +++ b/src/pages/workspace/WorkspaceProfilePlanTypePage.tsx @@ -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((policyType) => ({