浏览代码

HUE-6874 [search] Stabilize showing of nested document schema icon

Romain Rigaux 8 年之前
父节点
当前提交
1dc4dd9ff8
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      desktop/libs/dashboard/src/dashboard/static/dashboard/js/search.ko.js

+ 1 - 3
desktop/libs/dashboard/src/dashboard/static/dashboard/js/search.ko.js

@@ -1222,9 +1222,7 @@ var Collection = function (vm, collection) {
         collection: ko.mapping.toJSON(self),
         engine: self.engine()
       }, function (data) {
-        if (data.status == 0) {
-          self.nested.enabled(data.has_nested_documents);
-        }
+        self.nested.enabled(data.status == 0 && data.has_nested_documents);
     }).fail(function (xhr, textStatus, errorThrown) {});
   };