Sfoglia il codice sorgente

HUE-3450 [metadata] Fix typo in entity search

Romain Rigaux 9 anni fa
parent
commit
d9e4d4c0d4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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