Browse Source

HUE-8242 [frontend] Fix JS error when fetching MultiTableEntries

Johan Ahlen 7 years ago
parent
commit
f4ad1d4456
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/static/desktop/js/dataCatalog.js

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/dataCatalog.js

@@ -69,7 +69,7 @@ var DataCatalog = (function () {
       path: entry.path, // Set for DataCatalogEntry
       paths: entry.paths, // Set for MultiTableEntry
       silenceErrors: apiOptions && apiOptions.silenceErrors,
-      isView: entry.isView()
+      isView: entry.isView && entry.isView() // MultiTable entries don't have this property
     }).done(function (data) {
       entry[attributeName] = data;
       entry.saveLater();