[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'.
Hi, Is anyone working on this ticket already?...If not, can you please provide some more details...We are not able to see the slack message attached in description
Hey @deepthin3, thanks for showing interest in this issue. After this change, I have added steps to reproduce and the expected error message. Let me know if you need more details.
Hi @rishabhrathod01 , I am picking this issue.
Thanks @rishabhrathod01
@deepthin3 would like to pick this issue? I would add you as an assignee if not then @PrasadMadine could pick this up.
Hi @rishabhrathod01 - PrasadMadine is in my team...you can add him as assigned...thanks
Hello @rishabhrathod01 , I have fixed this issue and raised the PR Could you please review this PR when you have sometime. https://github.com/appsmithorg/appsmith/pull/36296 Thankyou