Skip to content

Commit

Permalink
Remove renderDialog default value.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Dec 2, 2024
1 parent d382287 commit 843d9ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/edit-site/src/components/save-panel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down Expand Up @@ -81,7 +81,7 @@ const EntitiesSavedStatesForPreview = ( { onClose, renderDialog = false } ) => {
);
};

const _EntitiesSavedStates = ( { onClose, renderDialog = false } ) => {
const _EntitiesSavedStates = ( { onClose, renderDialog } ) => {
if ( isPreviewingTheme() ) {
return (
<EntitiesSavedStatesForPreview
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/src/components/entities-saved-states/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function identity( values ) {
*
* @return {React.ReactNode} The rendered component.
*/
export default function EntitiesSavedStates( { close, renderDialog = false } ) {
export default function EntitiesSavedStates( { close, renderDialog } ) {
const isDirtyProps = useIsDirty();
return (
<EntitiesSavedStatesExtensible
Expand Down Expand Up @@ -69,7 +69,7 @@ export function EntitiesSavedStatesExtensible( {
onSave = identity,
saveEnabled: saveEnabledProp = undefined,
saveLabel = __( 'Save' ),
renderDialog = false,
renderDialog,
dirtyEntityRecords,
isDirty,
setUnselectedEntities,
Expand Down

0 comments on commit 843d9ef

Please sign in to comment.