Skip to content

Commit 9bcdf0d

Browse files
authored
fix(plugin-seo): meta image selection not working (#8024)
Fixes #8016
1 parent 8203fe8 commit 9bcdf0d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/plugin-seo/src/fields/MetaImage/MetaImageComponent.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,12 @@ export const MetaImageComponent: React.FC<MetaImageProps> = (props) => {
153153
label={undefined}
154154
onChange={(incomingImage) => {
155155
if (incomingImage !== null) {
156-
const { id: incomingID } = incomingImage
157-
setValue(incomingID)
156+
if (typeof incomingImage === 'object') {
157+
const { id: incomingID } = incomingImage
158+
setValue(incomingID)
159+
} else {
160+
setValue(incomingImage)
161+
}
158162
} else {
159163
setValue(null)
160164
}

0 commit comments

Comments
 (0)