Skip to content

Commit c81cce4

Browse files
committed
setState updates the blocks after that.
1 parent 79eee72 commit c81cce4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

electron/src/renderer/project/table/annotation-table/annotation-table.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ class AnnotationTable extends Component<{}, TableState> {
9797
}
9898

9999
const tableData=this.getClasslessTableData(table);
100-
101-
102-
if (currentFilesService.currentState.mappingFile) { this.updateAnnotationBlocks(tableData); }
103-
else {
104-
this.updateQnodes(tableData);
105-
}
100+
this.setState({ tableData }, () => {
101+
if (currentFilesService.currentState.mappingFile) { this.updateAnnotationBlocks(tableData); }
102+
else {
103+
this.updateQnodes(tableData);
104+
}
105+
});
106106
}
107107

108108

0 commit comments

Comments
 (0)