Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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