From 4a1f68afb3bf9ab1eb71bcd7beededd8e91d88fb Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Wed, 4 Dec 2024 11:18:01 +0100 Subject: [PATCH] Site Editor: Fix featured image not appearing in pages dataviews --- packages/editor/src/dataviews/store/private-actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/dataviews/store/private-actions.ts b/packages/editor/src/dataviews/store/private-actions.ts index 6906629fc80027..754a02d317a385 100644 --- a/packages/editor/src/dataviews/store/private-actions.ts +++ b/packages/editor/src/dataviews/store/private-actions.ts @@ -162,7 +162,7 @@ export const registerPostTypeSchema = const fields = [ postTypeConfig.supports?.thumbnail && - currentTheme?.[ 'theme-supports' ]?.[ 'post-thumbnails' ] && + currentTheme?.theme_supports?.[ 'post-thumbnails' ] && featuredImageField, titleField, postTypeConfig.supports?.author && authorField,