diff --git a/.changeset/khaki-experts-pretend.md b/.changeset/khaki-experts-pretend.md new file mode 100644 index 00000000000..66f520e6796 --- /dev/null +++ b/.changeset/khaki-experts-pretend.md @@ -0,0 +1,6 @@ +--- +"@clerk/clerk-js": minor +"@clerk/types": minor +--- + +Removed `__experimental_startPath` from `OrganizationProfileProps` in `@clerk/clerk-js` and `@clerk/types`. \ No newline at end of file diff --git a/packages/clerk-js/src/ui/Components.tsx b/packages/clerk-js/src/ui/Components.tsx index 10ec8472a1c..fb222942b13 100644 --- a/packages/clerk-js/src/ui/Components.tsx +++ b/packages/clerk-js/src/ui/Components.tsx @@ -307,7 +307,7 @@ const Components = (props: ComponentsProps) => { onExternalNavigate={() => componentsControls.closeModal('organizationProfile')} startPath={buildVirtualRouterUrl({ base: '/organizationProfile', - path: organizationProfileModal?.__experimental_startPath || urlStateParam?.path, + path: urlStateParam?.path, })} componentName={'OrganizationProfileModal'} modalContainerSx={{ alignItems: 'center' }} diff --git a/packages/clerk-js/src/ui/components/OrganizationSwitcher/OrganizationSwitcherPopover.tsx b/packages/clerk-js/src/ui/components/OrganizationSwitcher/OrganizationSwitcherPopover.tsx index aa58e4f0940..0a546370ab0 100644 --- a/packages/clerk-js/src/ui/components/OrganizationSwitcher/OrganizationSwitcherPopover.tsx +++ b/packages/clerk-js/src/ui/components/OrganizationSwitcher/OrganizationSwitcherPopover.tsx @@ -88,7 +88,7 @@ export const OrganizationSwitcherPopover = React.forwardRef { + const handleItemClick = () => { close(); if (organizationProfileMode === 'navigation') { return navigateOrganizationProfile(); @@ -96,7 +96,6 @@ export const OrganizationSwitcherPopover = React.forwardRef;