Skip to content

Commit f751a81

Browse files
committed
Fix item_context set_value
tod
1 parent 40be314 commit f751a81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/superannotate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44

55

6-
__version__ = "4.4.32dev1"
6+
__version__ = "4.4.32dev2"
77

88
os.environ.update({"sa_version": __version__})
99
sys.path.append(os.path.split(os.path.realpath(__file__))[0])

src/superannotate/lib/infrastructure/annotation_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def get_component_value(self, component_id: str):
4444
return None
4545

4646
def set_component_value(self, component_id: str, value: Any):
47-
self.annotation["data"][component_id] = {"value": value}
47+
self.annotation.setdefault("data", {}).setdefault(component_id, {})["value"] = value
4848
return self
4949

5050

0 commit comments

Comments
 (0)