diff --git a/electron/src/renderer/project/table/annotation-table/annotation-table.tsx b/electron/src/renderer/project/table/annotation-table/annotation-table.tsx index c5c122fc..f689f194 100644 --- a/electron/src/renderer/project/table/annotation-table/annotation-table.tsx +++ b/electron/src/renderer/project/table/annotation-table/annotation-table.tsx @@ -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); + } + }); }