Преглед изворни кода

HUE-6036 [assist] Fix js error when tagging databases

Johan Ahlen пре 8 година
родитељ
комит
ac2a990
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      desktop/core/src/desktop/templates/nav_components.mako

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

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