Skip to content

Commit

Permalink
chore: Cherry picked OPTIC-353 into release 1.11.0 (#5353)
Browse files Browse the repository at this point in the history
* [submodules] Copy src HumanSignal/label-studio-frontend

Workflow run: https://github.com/HumanSignal/label-studio/actions/runs/7641783707

* ci: Build frontend

Workflow run: https://github.com/HumanSignal/label-studio/actions/runs/7641808946

---------

Co-authored-by: Travis Clark <[email protected]>
Co-authored-by: robot-ci-heartex <[email protected]>
  • Loading branch information
3 people authored Jan 24, 2024
1 parent 08e726c commit a9766f0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/dist/libs/editor/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web/dist/libs/editor/main.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions web/libs/editor/src/LabelStudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ export class LabelStudio {
};

const clearRenderedApp = () => {
if (!rootElement.childNodes?.length) return;

const childNodes = [...rootElement.childNodes];
// cleanDomAfterReact needs this key to be sure that cleaning affects only current react subtree
const reactKey = findReactKey(childNodes[0]);
Expand Down
4 changes: 2 additions & 2 deletions web/libs/editor/src/regions/VideoRegion.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { types } from 'mobx-state-tree';
import { getRoot, types } from 'mobx-state-tree';

import { guidGenerator } from '../core/Helpers';
import { AreaMixin } from '../mixins/AreaMixin';
Expand Down Expand Up @@ -34,7 +34,7 @@ const Model = types
},

get annotation() {
return self.object.annotation;
return getRoot(self)?.annotationStore?.selected;
},

getShape() {
Expand Down

0 comments on commit a9766f0

Please sign in to comment.