Эх сурвалжийг харах

HUE-6459 [imporeter] Fix js error on task creation error

Johan Ahlen 8 жил өмнө
parent
commit
a7c22aa

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

@@ -1708,7 +1708,7 @@ ${ assist.assistPanel() }
             $.jHueNotify.info("${ _('Task ') }" + resp.history_uuid + "${_(' submitted.') }");
             huePubSub.publish('notebook.task.submitted', resp.history_uuid);
           } else {
-            $(document).trigger("error", data.message);
+            $(document).trigger("error", resp && resp.message ? resp.message : '${ _("Error importing") }');
           }
         }).fail(function (xhr, textStatus, errorThrown) {
           $(document).trigger("error", xhr.responseText);