Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
[fix] update choices after selecting history item
Browse files Browse the repository at this point in the history
  • Loading branch information
hlomzik committed Nov 5, 2021
1 parent 0213e25 commit b3b2c69
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/stores/AnnotationStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -1247,6 +1247,14 @@ export default types

function selectHistory(item) {
self.selectedHistory = item;
setTimeout(() => {
// update classifications after render
const updatedItem = item ?? self.selected;

updatedItem?.results
.filter(r => r.area.classification)
.forEach(r => r.from_name.updateFromResult?.(r.mainValue));
});
}

function addAnnotationFromPrediction(entity) {
Expand Down

0 comments on commit b3b2c69

Please sign in to comment.