diff --git a/packages/core-data/src/actions.js b/packages/core-data/src/actions.js index 36b0ba5f84c9d1..ec750e5227b741 100644 --- a/packages/core-data/src/actions.js +++ b/packages/core-data/src/actions.js @@ -798,8 +798,12 @@ export const saveEditedEntityRecord = name, recordId ); + const record = { [ entityIdKey ]: recordId, ...edits }; - return await dispatch.saveEntityRecord( kind, name, record, options ); + return await { + values: dispatch.saveEntityRecord( kind, name, record, options ), + metaChange: !! edits?.meta, + }; }; /** diff --git a/packages/editor/src/store/private-actions.js b/packages/editor/src/store/private-actions.js index 9304a2fe2c0579..7dcaaac630b6c8 100644 --- a/packages/editor/src/store/private-actions.js +++ b/packages/editor/src/store/private-actions.js @@ -203,7 +203,7 @@ export const saveDirtyEntities = registry .dispatch( noticesStore ) .createErrorNotice( __( 'Saving failed.' ) ); - } else { + } else if ( ! values.every( ( value ) => value.metaChange ) ) { registry .dispatch( noticesStore ) .createSuccessNotice( __( 'Site updated.' ), {