Browse Source

HUE-6023 [metastore] Fix js error when loading tags in the metastore

Johan Ahlen 8 năm trước cách đây
mục cha
commit
b76eb3b

+ 1 - 1
desktop/core/src/desktop/templates/nav_components.mako

@@ -85,7 +85,7 @@ from django.utils.translation import ugettext as _
           apiHelper.fetchNavEntity({
           apiHelper.fetchNavEntity({
             sourceType: ko.unwrap(params.sourceType),
             sourceType: ko.unwrap(params.sourceType),
             identifierChain: identifierChain,
             identifierChain: identifierChain,
-            isView: params.fetchedData() !== 'undefined' && params.fetchedData().is_view,
+            isView: typeof params.fetchedData !== 'undefined' && params.fetchedData().is_view,
             defaultDatabase: ko.unwrap(params.defaultDatabase),
             defaultDatabase: ko.unwrap(params.defaultDatabase),
             silenceErrors: true,
             silenceErrors: true,
             noCache: true,
             noCache: true,