diff --git a/arches_references/datatypes/datatypes.py b/arches_references/datatypes/datatypes.py index 3c49e6c..c78a0b4 100644 --- a/arches_references/datatypes/datatypes.py +++ b/arches_references/datatypes/datatypes.py @@ -82,6 +82,12 @@ def validate( def transform_value_for_tile(self, value, **kwargs): list_id = kwargs.get("controlledList") + if ( + isinstance(value, list) + and isinstance(value[0], dict) + and "value" in value[0] + ): + value = value[0]["value"] if isinstance(value, str): found_item = self.lookup_listitem_from_label(value, list_id) if found_item: