appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Bug] Fix toast message for when export default is not present in JS Object

Open infinitetrooper opened this issue 1 year ago • 6 comments

Slack Message

image (12)

undefined should not be present in the error message when body of JSObject is emptied.

Steps to reproduce

  1. Go the JSObject
  2. Remove all the code with export default
  3. Notice the error message shown in the toast.

Expected error message

JS object must contain 'export default'.

infinitetrooper avatar Sep 09 '24 07:09 infinitetrooper