Skip to content

Commit

Permalink
setState updates the blocks after that.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanaChelem committed May 13, 2021
1 parent 79eee72 commit c81cce4
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ class AnnotationTable extends Component<{}, TableState> {
}

const tableData=this.getClasslessTableData(table);


if (currentFilesService.currentState.mappingFile) { this.updateAnnotationBlocks(tableData); }
else {
this.updateQnodes(tableData);
}
this.setState({ tableData }, () => {
if (currentFilesService.currentState.mappingFile) { this.updateAnnotationBlocks(tableData); }
else {
this.updateQnodes(tableData);
}
});
}


Expand Down

0 comments on commit c81cce4

Please sign in to comment.