From cc3d9e74a8e1ce1a929db0645176c1f59ca8b2f0 Mon Sep 17 00:00:00 2001 From: joostdecock Date: Sun, 26 Jan 2025 15:39:54 +0100 Subject: [PATCH] fix: Value of scale core setting --- .../react/components/Editor/components/menus/Value.mjs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/react/components/Editor/components/menus/Value.mjs b/packages/react/components/Editor/components/menus/Value.mjs index 10c8f02b4b2..7c6eb46722f 100644 --- a/packages/react/components/Editor/components/menus/Value.mjs +++ b/packages/react/components/Editor/components/menus/Value.mjs @@ -50,7 +50,7 @@ export const MenuDegOptionValue = ({ config, current, changed }) => ( * @param {Function} children - The React children */ export const MenuHighlightValue = ({ changed, children }) => ( - {children} + {children} ) /** @@ -148,12 +148,14 @@ export const MenuShowValue = ({ current, dflt, changed }) => { /** * Displays the value for core's scale setting * - * @param {object} config - The option config * @param {number} current - The current (count) value + * @param {Object} options.config the item config * @param {bool} changed - Whether or not the value is non-default */ export const MenuScaleSettingValue = ({ current, config, changed }) => ( - + + {typeof current === 'undefined' ? config.dflt : current} + ) /**