Skip to content

Delete undefined key triggers error #244

Open
@swedmike

Description

@swedmike

Running a delete on urlOptions[label][attr] at line 1559 triggers an undefined error if the label is not there, which will stop JS execution and thus show the processindicator forever, making the table unusable.

The fix is obviously a small check:

if ("label" in urlOptions && "attr" in urlOptions[label]) {
  delete urlOptions[label][attr];
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions