Merge branch 'fix/appbuilder-stability-and-ui' of https://github.com/ToolJet/ToolJet into fix/appbuilder-stability-and-ui

This commit is contained in:
Johnson Cherian 2024-08-01 15:10:18 +05:30
commit ac8fd49e00
4 changed files with 6 additions and 4 deletions

View file

@ -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) {

View file

@ -109,7 +109,7 @@ export const Icon = ({ value, onChange, onVisibilityChange, styleDefinition, com
color: 'var(--slate12)',
}}
>
{value}
{String(value)}
</div>
<Visibility
value={value}

View file

@ -162,7 +162,7 @@ export const ColorPicker = function ({
>
<SketchPicker color={color} onChangeComplete={handleColorChange} />
</div>
<div className="comment-overlay" onClick={() => setShowColorPicker(false)}></div>
<div onClick={() => setShowColorPicker(false)}></div>
</>
)}
</div>

View file

@ -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':