Skip to content

Commit

Permalink
Merge pull request #1849 from cvisionai/dev/forward_port_1.3.14
Browse files Browse the repository at this point in the history
Fixes #1825, added null check for attributes before cloning in entity…
  • Loading branch information
bctcvai authored Oct 16, 2024
2 parents ea3adf5 + 6c85e88 commit c5242d1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ui/src/js/annotation/entity-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,12 @@ export class EntityBrowser extends TatorElement {
newObject.type = Number(state.type.split("_")[1]);
newObject.media_ids = state.media;
newObject.elemental_id = state.elemental_id;
newObject.frame = state.frame;
newObject.localization_ids = state.localizations;
if (state.frame !== null) {
newObject.frame = state.frame;
}
if (state.localizations !== null) {
newObject.localization_ids = state.localizations;
}
console.info(JSON.stringify(newObject));
this._undo.post("States", newObject, this._dataType);
} else {
Expand Down

0 comments on commit c5242d1

Please sign in to comment.