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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

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.

1 participant