hustcc / hustcc/gantt-for-react

DOMException when tasks array is empty

Open
#14 2 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.