From c2aef14f9b4a456a5652ef47916370cdd2d991ce Mon Sep 17 00:00:00 2001 From: ramon Date: Tue, 9 Jul 2024 12:30:20 +1000 Subject: [PATCH] Merge https://github.com/WordPress/gutenberg/pull/63227 into wp/6.6 Merge https://github.com/WordPress/gutenberg/pull/63227 into wp/6.6 --- .../src/components/post-actions/export-pattern-action.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/editor/src/components/post-actions/export-pattern-action.js b/packages/editor/src/components/post-actions/export-pattern-action.js index deeac4314f653..5edc23223163e 100644 --- a/packages/editor/src/components/post-actions/export-pattern-action.js +++ b/packages/editor/src/components/post-actions/export-pattern-action.js @@ -24,8 +24,10 @@ function getJsonFromItem( item ) { { __file: item.type, title: item.title || item.name, - content: item.patternPost.content.raw, - syncStatus: item.patternPost.wp_pattern_sync_status, + content: item?.patternPost?.content?.raw || item.content, + syncStatus: + item?.patternPost?.wp_pattern_sync_status || + item.wp_pattern_sync_status, }, null, 2