Skip to content

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

@ApekshaBhosale

Description

@ApekshaBhosale

Is there an existing issue for this?

  • I have searched the existing issues

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

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingJS ObjectsIssues related to JS ObjectsJavascript ProductIssues related to users writing javascript in appsmithMediumIssues that frustrate users due to poor UXQuery & JS PodIssues related to the query & JS PodQuery Widgets & IDE PodAll issues related to Query, JS, Eval, Widgets & IDE

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions