Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove useless useMemo
  • Loading branch information
youknowriad committed Dec 6, 2023
commit a9b300fe67dd070b96b8d725ba0f2d16512ecff7
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,7 @@ export function useSpecificEditorSettings() {
};
}, [] );
const archiveLabels = useArchiveLabel( templateSlug );
const defaultRenderingMode = useMemo( () => {
return postWithTemplate ? 'template-locked' : 'all';
}, [ postWithTemplate ] );

const defaultRenderingMode = postWithTemplate ? 'template-locked' : 'all';
const defaultEditorSettings = useMemo( () => {
return {
...settings,
Expand Down