Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Gondragos committed Jan 30, 2025
1 parent 9fbc8c3 commit a40f828
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/libs/editor/src/mixins/AreaMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ export const AreaMixinBase = types
.actions((self) => ({
beforeDestroy() {
self.results.forEach((r) => destroy(r));

// Some region indexes have to be recalculated after destroying regions
self.annotation?.updateAppearenceFromState?.();
},

Expand Down

0 comments on commit a40f828

Please sign in to comment.