We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8203fe8 commit 9bcdf0dCopy full SHA for 9bcdf0d
packages/plugin-seo/src/fields/MetaImage/MetaImageComponent.tsx
@@ -153,8 +153,12 @@ export const MetaImageComponent: React.FC<MetaImageProps> = (props) => {
153
label={undefined}
154
onChange={(incomingImage) => {
155
if (incomingImage !== null) {
156
- const { id: incomingID } = incomingImage
157
- setValue(incomingID)
+ if (typeof incomingImage === 'object') {
+ const { id: incomingID } = incomingImage
158
+ setValue(incomingID)
159
+ } else {
160
+ setValue(incomingImage)
161
+ }
162
} else {
163
setValue(null)
164
}
0 commit comments