Skip to content

Hitting backspace key in data browser crashes dashboard #2453

Closed
@mtrezza

Description

@mtrezza

New Issue Checklist

Issue Description

Hitting backspace key in data browser crashes dashboard

with error:

[Error] TypeError: undefined is not an object (evaluating 'this.props.value._previousSave')
value — dashboard.bundle.js:104940:115

at line:

if (this.props.value !== e.value && (this.renderCellContent(), null === (t = this.props.value._previousSave) || void 0 === t || null === (n = t.then((function() {

Bug introduced by #2422.

Steps to reproduce

  1. Open data browser
  2. Select deletable field
  3. Hit backspace key

Actual Outcome

Error thrown, window goes blank.

Expected Outcome

Delete field value.

Environment

Dashboard

  • Parse Dashboard version: 5.2.0-alpha.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:releasedReleased as stable versionstate:released-alphaReleased as alpha versionstate:released-betaReleased as beta versiontype:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions