Skip to content

Commit

Permalink
Null null issue when not default font
Browse files Browse the repository at this point in the history
  • Loading branch information
umerfaruk authored Mar 15, 2024
1 parent b862be2 commit 3f3ae70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/fontDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const FONT_FAMILY_OPTIONS = [
{ value: "Verdana", label: "Verdana" },
];

export const defaultFont = ({ configuration }) => {
export const defaultFont = (configuration) => {
var fonts = configuration?.toolbar?.fonts || FONT_FAMILY_OPTIONS;
return configuration?.toolbar?.defaultFont
? fonts.find(x => x.value === configuration?.toolbar?.defaultFont) || fonts[0]
Expand Down

0 comments on commit 3f3ae70

Please sign in to comment.