Skip to content
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

fix(plugin-multi-tenant): incorrect tenant selection with postgres #10992

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

JarrodMFlesch
Copy link
Contributor

@JarrodMFlesch JarrodMFlesch commented Feb 5, 2025

What

  1. List view not working when clearing tenant selection (you would see a NaN error)
  2. Tenant selector would reset to the first option when loading a document

Why

  1. Using parseFloat on the ALL selection option
  2. A was mismatch in ID types was causing the selector to never find a matching option, thus resetting it to the first option

How

  1. Check if cookie isNumber before parsing
  2. Do not cast select option values to string anymore

Fixes #9821
Fixes #10980

@JarrodMFlesch JarrodMFlesch merged commit 2a1ddf1 into main Feb 5, 2025
74 checks passed
@JarrodMFlesch JarrodMFlesch deleted the fix/multi-tenant-pg branch February 5, 2025 14:56
Copy link
Contributor

github-actions bot commented Feb 5, 2025

🚀 This is included in version v3.21.0

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