Skip to content

Add conditional chaining to prevent for each fail on undefined #49

@ChristopherGier

Description

@ChristopherGier

properties.forEach(property => {

Changing the line to

properties?.forEach(property => {

should prevent the script from failing if the attribute is undefined.
The issue occured using Smart Fan 2 as the attribute was not defined there

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions