From b7c2858c308e81681f8a76cdfb9fda207bf6e31e Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 26 Feb 2021 12:18:33 +0100 Subject: [PATCH] Fix error when importing wrong format --- www/common/sframe-app-framework.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/common/sframe-app-framework.js b/www/common/sframe-app-framework.js index b05628dbd..9710adcf1 100644 --- a/www/common/sframe-app-framework.js +++ b/www/common/sframe-app-framework.js @@ -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(); });