From 36991e69334c0d6e4c77efbe848df8e3cf1e7fef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rn=20Knutsen?= <968695+jorngeorg@users.noreply.github.com> Date: Tue, 3 Jan 2023 16:43:35 +0100 Subject: [PATCH] fix(docs): formBuilder.image.assetSource should be form.image.assetSource --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e56fcea..587175a 100644 --- a/README.md +++ b/README.md @@ -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"; @@ -46,7 +46,7 @@ export default defineConfig({ plugins: [ unsplashImageAsset(), ], - formBuilder: { + form: { image: { assetSources: (previousAssetSources, {schema}) => { if (schema.name === 'movie-image') {