From 843d9ef95f8b20d2dbb7d3b5bbd9fb02352371f0 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Mon, 2 Dec 2024 11:44:58 +0100 Subject: [PATCH] Remove renderDialog default value. --- packages/edit-site/src/components/save-panel/index.js | 4 ++-- packages/editor/src/components/entities-saved-states/index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/edit-site/src/components/save-panel/index.js b/packages/edit-site/src/components/save-panel/index.js index 091b01c0ee64f..95ec9b9ffc8c4 100644 --- a/packages/edit-site/src/components/save-panel/index.js +++ b/packages/edit-site/src/components/save-panel/index.js @@ -31,7 +31,7 @@ const { EntitiesSavedStatesExtensible, NavigableRegion } = unlock( privateApis ); const { useLocation } = unlock( routerPrivateApis ); -const EntitiesSavedStatesForPreview = ( { onClose, renderDialog = false } ) => { +const EntitiesSavedStatesForPreview = ( { onClose, renderDialog } ) => { const isDirtyProps = useEntitiesSavedStatesIsDirty(); let activateSaveLabel; if ( isDirtyProps.isDirty ) { @@ -81,7 +81,7 @@ const EntitiesSavedStatesForPreview = ( { onClose, renderDialog = false } ) => { ); }; -const _EntitiesSavedStates = ( { onClose, renderDialog = false } ) => { +const _EntitiesSavedStates = ( { onClose, renderDialog } ) => { if ( isPreviewingTheme() ) { return (