From 3f3ae70bfb25e769c9c9db546ab85c3369573254 Mon Sep 17 00:00:00 2001 From: Omar Faruk Date: Fri, 15 Mar 2024 16:30:33 +0000 Subject: [PATCH] Null null issue when not default font --- src/plugins/fontDropdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/fontDropdown.js b/src/plugins/fontDropdown.js index d546dd6..4ffe0ac 100644 --- a/src/plugins/fontDropdown.js +++ b/src/plugins/fontDropdown.js @@ -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]