appsmith
appsmith copied to clipboard
[Bug] Fix toast message for when export default is not present in JS Object
undefined should not be present in the error message when body of JSObject is emptied.
Steps to reproduce
- Go the JSObject
- Remove all the code with export default
- Notice the error message shown in the toast.
Expected error message
JS object must contain 'export default'.