Skip to content

Commit

Permalink
Fix back button erroneously showing
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Nov 5, 2024
1 parent 553af4d commit e4bef12
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/editor/src/components/document-bar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ export default function DocumentBar( props ) {
{ __( 'Back' ) }
</MotionButton>
) }
{ ! isTemplate && isTemplatePreview && (
<BlockIcon
icon={ layout }
className="editor-document-bar__icon-layout"
/>
) }
</AnimatePresence>
{ ! isTemplate && isTemplatePreview && (
<BlockIcon
icon={ layout }
className="editor-document-bar__icon-layout"
/>
) }
{ isNotFound ? (
<Text>{ __( 'Document not found' ) }</Text>
) : (
Expand Down

0 comments on commit e4bef12

Please sign in to comment.