瀏覽代碼

PR941 [fix] fix bug -- table browser can not add discription (#941)

OOp001 6 年之前
父節點
當前提交
e2e2cbd240
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/js/api/apiHelper.js

+ 1 - 1
desktop/core/src/desktop/js/api/apiHelper.js

@@ -1528,7 +1528,7 @@ class ApiHelper {
           data.new_table_name = options.properties.name;
         }
       }
-    } else if (options.path > 2) {
+    } else if (options.path.length > 2) {
       url = '/metastore/table/' + options.path[0] + '/' + options.path[1] + '/alter_column';
       data.column = options.path.slice(2).join('.');
       if (options.properties) {