sanity
sanity copied to clipboard
fix(vision): allow reconfiguration of vision client
Description
Mistakenly forgot that the client passed to vision from the studio now has a frozen config, but we're attempting to mutate it when changing API versions. Since we're using withConfig()
(which clones and applies a new config) on the passed client, it is okay to un-freeze the config of this particular instance of the client.
What to review
- That vision works inside the studio when switching between API versions
Notes for release
- Fixes an issue where the vision plugin would fail to run queries
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
test-studio | ✅ Ready (Inspect) | Visit Preview | Sep 23, 2022 at 9:18PM (UTC) |
1 Ignored Deployment
Name | Status | Preview | Updated |
---|---|---|---|
studio-workshop | ⬜️ Ignored (Inspect) | Sep 23, 2022 at 9:18PM (UTC) |
Fixes https://github.com/sanity-io/sanity/issues/3673