浏览代码

HUE-7713 [importer] Avoid printing Skipped records warning by mistake

Romain Rigaux 8 年之前
父节点
当前提交
ba21678
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/libs/indexer/src/indexer/templates/importer.mako

+ 1 - 1
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -2034,7 +2034,7 @@ ${ assist.assistPanel() }
                 huePubSub.publish(resp.pub_sub_url);
               }
               $.jHueNotify.info("${ _('Creation success') }");
-              if (resp.errors) {
+              if (resp.errors && resp.errors.length) {
                 $.jHueNotify.warn("${ _('Skipped records: ') }" + resp.errors.join(', '));
               }
               huePubSub.publish('open.link', resp.on_success_url);