diff --git a/bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.py b/bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.py
index 899903cbe68dec747dabefd4bdc7a1471ec4b8d1..35f66a64dbaee81be9e4cde211302977457d8f3c 100644
--- a/bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.py
+++ b/bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.py
@@ -754,7 +754,7 @@ def renderField(traversed_document, field, form, value=None, meta_type=None, key
     # in that case we prefer non_empty version
     list_method_query_dict = default_params.copy()
     if not list_method_query_dict.get("portal_type", []) and portal_type_list:
-      list_method_query_dict["portal_type"] = [x for x, _ in portal_type_list]
+      list_method_query_dict["portal_type"] = [x[0] for x in portal_type_list]
     list_method_custom = None
 
     # Search for non-editable documents - all reports goes here