瀏覽代碼

[assist] Fix table preview for Hive

Johan Ahlen 10 年之前
父節點
當前提交
3812d3b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/static/desktop/js/assist/assistEntry.js

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/assist/assistEntry.js

@@ -273,7 +273,7 @@
     $assistQuickLook.attr("style", "width: " + ($(window).width() - 120) + "px;margin-left:-" + (($(window).width() - 80) / 2) + "px!important;");
 
     self.assistSource.assistHelper.fetchTableHtmlPreview({
-      sourceType: self.assistSource.type,
+      sourceType: self.assistSource.type === "hive" ? "beeswax" : self.assistSource.type,
       databaseName: databaseName,
       tableName: tableName,
       successCallback: function(data) {