Explorar o código

HUE-3450 [metadata] Fix typo in entity search

Romain Rigaux %!s(int64=9) %!d(string=hai) anos
pai
achega
d9e4d4c0d4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/libs/metadata/src/metadata/navigator_api.py

+ 1 - 1
desktop/libs/metadata/src/metadata/navigator_api.py

@@ -124,7 +124,7 @@ def find_entity(request):
     raise MetadataApiException("type %s is unrecognized" % entity_type)
 
   # Prevent nulls later
-  if 'tag' in response['entity'] and not response['entity']['tags']:
+  if 'tags' in response['entity'] and not response['entity']['tags']:
     response['entity']['tags'] = []
 
   response['status'] = 0