Skip to content
Open
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
[issue-59778] Fix Font Family control error when theme does not suppo…
…rt fonts.
  • Loading branch information
zeopix authored Mar 13, 2024
commit 7038c760f8f4be406c321c84a77e54c56c76e410
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function FontFamilyControl( {
...props
} ) {
const [ blockLevelFontFamilies ] = useSettings( 'typography.fontFamilies' );
if ( ! fontFamilies ) {
if ( ! fontFamilies && blockLevelFontFamilies !== undefined ) {
const { theme, custom } = blockLevelFontFamilies;
fontFamilies = theme !== undefined ? theme : [];
if ( custom !== undefined ) {
Expand Down