Skip to content

Commit 5c39bbd

Browse files
authored
Merge pull request #771 from superannotateai/update_get_component_config
Added empty case handling
2 parents 24741d2 + cfe0a7a commit 5c39bbd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/superannotate/lib/app/interface/sdk_interface.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,9 @@ def retrieve_context(
640640
and component["id"] == component_pk
641641
and component["type"] == "webComponent"
642642
):
643+
context = component.get("context")
644+
if context is None or context == "":
645+
return False, None
643646
return True, json.loads(component.get("context"))
644647

645648
except KeyError as e:

0 commit comments

Comments
 (0)