appsmith
appsmith copied to clipboard
[Bug]: JS code with additional text does not evaluate
Is there an existing issue for this?
- [X] I have searched the existing issues
Description
When I write Returned: {{currentItem.date_returned === "" ? "No" : currentItem.date_returned}} I expect the output to be Returned: No
But instead I get the output to be

Steps To Reproduce
- Create an appsmith app
- In a text widget, in the text property mention
{{currentItem.date_returned === "" ? "No" : currentItem.date_returned}}which checks if the there is no return date, it outputsNoor if there is a return date, it outputs the date. - Now, in another text widget mention
Returned: {{currentItem.date_returned === "" ? "No" : currentItem.date_returned}}which should work the same way as in step 2 with aReturned:appended at the start. But, it does not evaluate the query correctly and just outputswhen there is no return date.
Public Sample App
No response
Version
Cloud 1.7.7