Skip to content

Commit

Permalink
fix(docs): formBuilder.image.assetSource should be form.image.assetSo…
Browse files Browse the repository at this point in the history
…urce
  • Loading branch information
jorngeorg committed Jan 3, 2023
1 parent dfa2612 commit 36991e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -36,7 +36,7 @@ This will add [unsplashAssetSource](src/index.ts) to all image-fields in Sanity
### Manually configure asset sources

If you need to configure when Unsplash should be available as an asset source, filter it out as needed in
`formbuilder.image.assetSources`:
`form.image.assetSources`:

```js
import { unsplashImageAsset, unsplashAssetSource } from "sanity-plugin-asset-source-unsplash";
Expand All @@ -46,7 +46,7 @@ export default defineConfig({
plugins: [
unsplashImageAsset(),
],
formBuilder: {
form: {
image: {
assetSources: (previousAssetSources, {schema}) => {
if (schema.name === 'movie-image') {
Expand Down

0 comments on commit 36991e6

Please sign in to comment.