Skip to content

Commit d7da522

Browse files
committed
Introduce draft for enabled prompt state
1 parent 56a47e3 commit d7da522

File tree

5 files changed

+246
-154
lines changed

5 files changed

+246
-154
lines changed

packages/clerk-js/src/core/clerk.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,12 +1120,10 @@ export class Clerk implements ClerkInterface {
11201120
public mountOrganizationList = (node: HTMLDivElement, props?: OrganizationListProps) => {
11211121
this.assertComponentsReady(this.#componentControls);
11221122
if (disabledOrganizationsFeature(this, this.environment)) {
1123-
debugger;
11241123
if (this.#instanceType === 'development') {
11251124
this.__internal_openEnableOrganizationsPrompt({
11261125
componentName: 'OrganizationList',
11271126
onComplete: () => {
1128-
debugger;
11291127
this.mountOrganizationList(node, props);
11301128
},
11311129
});

packages/clerk-js/src/core/resources/OrganizationSettings.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,8 @@ export class OrganizationSettings extends BaseResource implements OrganizationSe
7575
max_allowed_memberships: this.maxAllowedMemberships,
7676
} as unknown as OrganizationSettingsJSONSnapshot;
7777
}
78+
79+
public __internal_enableInMemory() {
80+
this.enabled = true;
81+
}
7882
}

0 commit comments

Comments
 (0)