Fix error when importing wrong format

pull/1/head
yflory 2021-02-26 12:18:33 +01:00
parent df8785e79d
commit b7c2858c30
1 changed files with 3 additions and 1 deletions

View File

@ -712,7 +712,9 @@ define([
return;
}
nThen(function (waitFor) {
contentUpdate(fi(c, f), waitFor);
var content = fi(c, f);
if (typeof(content) === "undefined") { return; }
contentUpdate(content, waitFor);
}).nThen(function () {
onLocal();
});