Skip to content

"Uncaught TypeError: Cannot read property 'time_point' of null" Error in Mask Tool #106

@dwh1121

Description

@dwh1121

Hello author,

Thank you for providing such a useful tool for everyone to use.

When I use the Mask Tool to draw the mask, and press the Done button. I cannot add polygon. I can find the "Uncaught TypeError: Cannot read property 'time_point' of null" error message in the Console.

I can correct this error by modifying the following code:

html_str += '<timefirst>' + draw_anno.time_point[0] + '</timefirst>';
html_str += '<timesecond>' + draw_anno.time_point[1] + '</timesecond>';

To:
html_str += '<timefirst>' + anno.time_point[0] + '</timefirst>';
html_str += '<timesecond>' + anno.time_point[1] + '</timesecond>';

Hope this finding can help everyone.

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