diff --git a/frontend/src/AppBuilder/CodeEditor/TJDBHinter.jsx b/frontend/src/AppBuilder/CodeEditor/TJDBHinter.jsx index 625b11dedd..dab57d0f20 100644 --- a/frontend/src/AppBuilder/CodeEditor/TJDBHinter.jsx +++ b/frontend/src/AppBuilder/CodeEditor/TJDBHinter.jsx @@ -56,8 +56,8 @@ const TJDBCodeEditor = (props) => { const handleOnChange = (value) => { if (value === '') { - setErrorState(true); - setError('JSON cannot be empty'); + setErrorState(false); + setError(null); setCurrentValue(value); return; } @@ -150,7 +150,7 @@ const TJDBCodeEditor = (props) => { className="cm-codehinter position-relative" style={{ width: '100%', - height: isOpen ? '350px' : 'auto', + height: isOpen ? '350p' : 'auto', }} >