Explorar o código

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

Johan Ahlen %!s(int64=8) %!d(string=hai) anos
pai
achega
f4ad1d4456
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();