diff --git a/frontend/src/Editor/CodeBuilder/Elements/BoxShadow.jsx b/frontend/src/Editor/CodeBuilder/Elements/BoxShadow.jsx index 535ba46ef7..791a5a3004 100644 --- a/frontend/src/Editor/CodeBuilder/Elements/BoxShadow.jsx +++ b/frontend/src/Editor/CodeBuilder/Elements/BoxShadow.jsx @@ -46,7 +46,7 @@ export const BoxShadow = ({ value, onChange, cyLabel }) => { setDebouncedShadow(newValue); } // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); + }, [value]); useEffect(() => { if (boxShadow !== debouncedShadow) { diff --git a/frontend/src/Editor/CodeBuilder/Elements/Icon.jsx b/frontend/src/Editor/CodeBuilder/Elements/Icon.jsx index 26d6bf43ec..70fd50f516 100644 --- a/frontend/src/Editor/CodeBuilder/Elements/Icon.jsx +++ b/frontend/src/Editor/CodeBuilder/Elements/Icon.jsx @@ -109,7 +109,7 @@ export const Icon = ({ value, onChange, onVisibilityChange, styleDefinition, com color: 'var(--slate12)', }} > - {value} + {String(value)} -
setShowColorPicker(false)}>
+
setShowColorPicker(false)}>
)} diff --git a/frontend/src/_helpers/appUtils.js b/frontend/src/_helpers/appUtils.js index e9554d7989..914611e7b0 100644 --- a/frontend/src/_helpers/appUtils.js +++ b/frontend/src/_helpers/appUtils.js @@ -522,7 +522,9 @@ function executeActionWithDebounce(_ref, event, mode, customVariables) { } switch (event.actionId) { case 'show-alert': { - const message = resolveReferences(event.message, undefined, customVariables); + let message = resolveReferences(event.message, undefined, customVariables); + if (typeof message === 'object') message = JSON.stringify(message); + switch (event.alertType) { case 'success': case 'error':