From f472938a05e814e4d686d2f5f0e63261d9ec31cf Mon Sep 17 00:00:00 2001 From: Manish Kushare <37823141+manishkushare@users.noreply.github.com> Date: Tue, 11 Mar 2025 15:16:26 +0530 Subject: [PATCH] While creating table, getting error message for the default value in JSON data type (if we try to edit it) (#12190) While creating table, UI has broked with JSON data type default field Unable to see the code hinter's changed value in the cell for the JSON data type field (for cell edit only) --- frontend/src/AppBuilder/CodeEditor/TJDBHinter.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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', }} >
@@ -178,7 +178,7 @@ const TJDBCodeEditor = (props) => {