sanity icon indicating copy to clipboard operation
sanity copied to clipboard

fix(vision): allow reconfiguration of vision client

Open rexxars opened this issue 1 year ago • 2 comments

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

rexxars avatar Sep 20 '22 16:09 rexxars

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)

vercel[bot] avatar Sep 20 '22 16:09 vercel[bot]

Fixes https://github.com/sanity-io/sanity/issues/3673

rexxars avatar Sep 21 '22 15:09 rexxars