You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is likely caused by trying to use a scope from an non-existing span. For example, if there is no Token, then using scope selector would cause this error.
To Reproduce
Steps to reproduce the behavior:
Prepare data: Add a datapack without entries.
Click which button: select one of the scope, for example, "Token" or "Sentence".
See error: You should see the TypeError above.
Expected behavior
Either report that this cannot be used as Scope, or do not show this in the Scope selector from the start.
Screenshots
Here is the scope selector
Environment (please complete the following information):
OS: [e.g. Mac OS and Chrome]
Version: Chrome 84.0
Node Versions: v12.16.1
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
Sometimes we can get the following error when using the scope selector.
TypeError: Cannot read property 'span' of undefined
TextArea
src/nlpviewer/components/TextArea.tsx:79
76 | );
77 | const currScopeAnnotation = scopeAnnotations[selectedScopeIndex];
78 |
This is likely caused by trying to use a scope from an non-existing span. For example, if there is no Token, then using scope selector would cause this error.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Either report that this cannot be used as Scope, or do not show this in the Scope selector from the start.
Screenshots
Here is the scope selector
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: