appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.14k stars 3.69k forks source link

[Bug]: Allow space before 'export default{}' #33984

Open ApekshaBhosale opened 4 months ago

ApekshaBhosale commented 4 months ago

Is there an existing issue for this?

Description

In JS object, if one adds an empty space before "export default {}", it throws an error saying Start object with export default at: undefined. We should allow users to add space before object starts

image

Steps To Reproduce

  1. Create JS object
  2. Enter before "export default"
  3. throws error

Public Sample App

No response

Environment

Production

Severity

Low (Cosmetic UI issues)

Issue video log

No response

Version

CLoud

zoispyridi commented 4 months ago

Hello, I am interested in picking up this issue as part of my first open source contribution. I am a student contributing as an assignment in university so any guidance as to where to start would be much appreciated. Thank you!

PrasadMadine commented 3 months ago

Hello @ApekshaBhosale , I'm picking this issue.