diff --git a/tcex/api/tc/ti_transform/ti_predefined_functions.py b/tcex/api/tc/ti_transform/ti_predefined_functions.py index 0ab17e364..ed901f0e9 100644 --- a/tcex/api/tc/ti_transform/ti_predefined_functions.py +++ b/tcex/api/tc/ti_transform/ti_predefined_functions.py @@ -102,6 +102,8 @@ def static_map(self, value, mapping: dict): If there is no matching value in the mapping the original value will be returned. """ + if not isinstance(mapping, dict): + mapping = json.loads(mapping) return mapping.get(str(value), value) def value_in(self, value, values: str, delimiter: str = ','): diff --git a/tcex/pleb b/tcex/pleb index f6a3253fe..9d0dfea97 160000 --- a/tcex/pleb +++ b/tcex/pleb @@ -1 +1 @@ -Subproject commit f6a3253fe6f1ceaee3bbe05e6e3200535d3a18ef +Subproject commit 9d0dfea97c6103f448f81cc38555d823be6e49bf