Fix includes is not a function error crash (#1555)
* Make the value a string to avoid includes is not a function error * If it is not a string show the prompt
This commit is contained in:
parent
ceb31edd76
commit
ba6aceb096
|
|
@ -292,8 +292,9 @@ class CodeEditor extends Component<Props, State> {
|
|||
("dataTreePath" in this.props && !!this.props.dataTreePath));
|
||||
|
||||
const showBindingPrompt =
|
||||
(!this.props.input.value?.includes("{{") || !this.props.input.value) &&
|
||||
showEvaluatedValue;
|
||||
!_.isString(this.props.input.value) ||
|
||||
((!this.props.input.value?.includes("{{") || !this.props.input.value) &&
|
||||
showEvaluatedValue);
|
||||
|
||||
return (
|
||||
<DynamicAutocompleteInputWrapper
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user