Skip to content

clicks.js needs a check to make sure parent has an ID #295

@ssx

Description

@ssx

On this line:
https://github.com/yireo/Yireo_GoogleTagManager2/blob/master/view/frontend/web/js/product/clicks.js#L11

it'll fail if for some reason the parent doesn't have an ID, this could do with being handled a bit more gracefully otherwise you'll run into errors such as:

undefined is not an object (evaluating '$parent.attr('id').match')

Probably worth just checking $parent.attr('id') exists first.

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