Skip to content

Commit

Permalink
Fix the goBack option in site editor
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Feb 7, 2024
1 parent 4b72155 commit 76b3e8a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export function useSpecificEditorSettings() {
);
const archiveLabels = useArchiveLabel( templateSlug );
const defaultRenderingMode = postWithTemplate ? 'template-locked' : 'all';
const goBack = useGoBack();
const onNavigateToPreviousEntityRecord = useGoBack();
const defaultEditorSettings = useMemo( () => {
return {
...settings,
Expand All @@ -143,7 +143,7 @@ export function useSpecificEditorSettings() {
focusMode: canvasMode !== 'view',
defaultRenderingMode,
onNavigateToEntityRecord,
goBack,
onNavigateToPreviousEntityRecord,
// I wonder if they should be set in the post editor too
__experimentalArchiveTitleTypeLabel: archiveLabels.archiveTypeLabel,
__experimentalArchiveTitleNameLabel: archiveLabels.archiveNameLabel,
Expand All @@ -153,7 +153,7 @@ export function useSpecificEditorSettings() {
canvasMode,
defaultRenderingMode,
onNavigateToEntityRecord,
goBack,
onNavigateToPreviousEntityRecord,
archiveLabels.archiveTypeLabel,
archiveLabels.archiveNameLabel,
] );
Expand Down

0 comments on commit 76b3e8a

Please sign in to comment.