Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dwh1121 opened this issue Apr 27, 2020 · 0 comments

Comments

@dwh1121
Copy link

dwh1121 commented Apr 27, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant