Преглед на файлове

HUE-3450 [metadata] Fix typo in entity search

Romain Rigaux преди 9 години
родител
ревизия
d9e4d4c0d4
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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