From 8ae77f77641424e88ff8ecfe4a9a7cf6945a539e Mon Sep 17 00:00:00 2001 From: akash-codemonk <67054171+akash-codemonk@users.noreply.github.com> Date: Wed, 4 Nov 2020 16:37:10 +0530 Subject: [PATCH] Fix prompt showing up always (#1556) --- .../src/components/editorComponents/CodeEditor/index.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/client/src/components/editorComponents/CodeEditor/index.tsx b/app/client/src/components/editorComponents/CodeEditor/index.tsx index bdd0f0ba2b..2df0dae1eb 100644 --- a/app/client/src/components/editorComponents/CodeEditor/index.tsx +++ b/app/client/src/components/editorComponents/CodeEditor/index.tsx @@ -292,9 +292,10 @@ class CodeEditor extends Component { ("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 (