mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-05 22:38:48 +00:00
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:
parent
bbd5084606
commit
f472938a05
1 changed files with 4 additions and 4 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue