Fix react warning

pull/721/head
Piero Toffanin 2019-09-07 14:35:30 -04:00
rodzic f887f85852
commit c26c4ff7d1
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -251,6 +251,7 @@ class ProjectListItem extends React.Component {
PluginsAPI.Dashboard.triggerAddNewTaskButton({projectId: this.state.data.id, onNewTaskAdded: this.newTaskAdded}, (button) => {
if (!button) return;
this.setState(update(this.state, {
buttons: {$push: [button]}
}));
@ -427,7 +428,7 @@ class ProjectListItem extends React.Component {
onClick={this.handleImportTask}>
<i className="glyphicon glyphicon-import"></i> Import
</button>
{this.state.buttons.map((button, i) => button)}
{this.state.buttons.map((button, i) => <React.Fragment key={i}>{button}</React.Fragment>)}
</div>
: ""}