Fix prompt showing up always (#1556)

This commit is contained in:
akash-codemonk 2020-11-04 16:37:10 +05:30 committed by GitHub
parent ba6aceb096
commit 8ae77f7764
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -292,9 +292,10 @@ class CodeEditor extends Component<Props, State> {
("dataTreePath" in this.props && !!this.props.dataTreePath));
const showBindingPrompt =
!_.isString(this.props.input.value) ||
((!this.props.input.value?.includes("{{") || !this.props.input.value) &&
showEvaluatedValue);
showEvaluatedValue &&
(!_.isString(this.props.input.value) ||
!this.props.input.value?.includes("{{") ||
!this.props.input.value);
return (
<DynamicAutocompleteInputWrapper