소스 검색

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