Skip to content

fix(plugin-multi-tenant): updates tenant selector upon tenant creation #12936

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2025

Conversation

jessrynkar
Copy link
Member

@jessrynkar jessrynkar commented Jun 25, 2025

What?

Updates the tenant selector displayed in the sidebar when a new tenant is created.

Why?

Currently when using the multi-tenant plugin and creating a new tenant doc, the tenant selector dropdown does not display the new tenant as an option until the page gets refreshed.

How?

Extends the WatchTenantCollection helper to check if the tenant id from the current doc exists, if the tenant is new it manually calls updateTenants. The updateTenants function previously only adjusted the title on existing tenants, this has been updated to add a new tenant as an option when it doesn't exist.

Reported by client

@DanRibbens DanRibbens requested a review from JarrodMFlesch June 27, 2025 10:25
@DanRibbens DanRibbens merged commit c76d839 into main Jun 27, 2025
159 of 163 checks passed
@DanRibbens DanRibbens deleted the fix/multitenant-selector branch June 27, 2025 10:26
Copy link
Contributor

🚀 This is included in version v3.44.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants