浏览代码

HUE-8155 [metastore] Fix issue where all columns are marked as keys

Johan Ahlen 7 年之前
父节点
当前提交
c8c58a1c22
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/templates/ko_components/ko_catalog_entries_table.mako

+ 1 - 1
desktop/core/src/desktop/templates/ko_components/ko_catalog_entries_table.mako

@@ -232,7 +232,7 @@ from desktop.views import _ko
         self.joinColumns = ko.observableArray();
 
         self.isKey = ko.pureComputed(function () {
-          return self.catalogEntry.isPrimaryKey() || self.catalogEntry.isPartitionKey || self.joinColumns().length;
+          return self.catalogEntry.isPrimaryKey() || self.catalogEntry.isPartitionKey() || self.joinColumns().length;
         });
 
         self.keyText = ko.pureComputed(function () {