Skip to content

Commit 193f84b

Browse files
authored
#2814 Fixed - All Expression controls show red caret with error message (#2815)
Signed-off-by: Neha Gokhale <[email protected]>
1 parent ba8f2ba commit 193f84b

File tree

1 file changed

+1
-1
lines changed
  • canvas_modules/common-canvas/src/common-properties/controls/expression

1 file changed

+1
-1
lines changed

canvas_modules/common-canvas/src/common-properties/controls/expression/expression.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ class ExpressionControl extends React.Component {
224224
{ tag: tags.meta, class: "cm-meta" }
225225
]);
226226

227-
const linterExtension = linter(jsonParseLinter());
227+
const linterExtension = this.props.control.language === "json" ? linter(jsonParseLinter()) : [];
228228

229229
this.editor = new EditorView({
230230
doc: this.props.value,

0 commit comments

Comments
 (0)