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)
This commit is contained in:
Manish Kushare 2025-03-11 15:16:26 +05:30 committed by GitHub
parent bbd5084606
commit f472938a05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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',
}}
>
<div className={`cm-codehinter ${darkMode && 'cm-codehinter-dark-themed'}`}>
@ -178,7 +178,7 @@ const TJDBCodeEditor = (props) => {
<CodeMirror
value={currentValue}
placeholder={placeholder}
height={isOpen ? '350px' : '32px'}
height={isOpen ? '32px' : '32px'}
maxHeight={'350px'}
width="100%"
theme={theme}