hustcc / hustcc/gantt-for-react
DOMException when tasks array is empty
Open
- Dominant language
- JavaScript
- Stars
- 327
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
Description
> Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
This happens when tasks goes empty ([], length 0, you get the point).
This renders the whole thing useless.
```
{
this.state.tasks.length
?
:
{this.props.t('info.emptyProjectProgress')}
}
```
As soon as state.tasks.length goes to 0, everything goes bust.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.