Skip to content

Click handler doesn't properly check if library property exists. #73

@GeoffDusome

Description

@GeoffDusome

In the get_click_hanlder function within the functions.js file (line 27, specifically), the item.requires.library statement doesn't properly check if both requires and library exist. This can cause issues with custom button implementations that do not have these attributes.

Correct implementation could / should be item?.requires?.library.

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