diff --git a/js/artInfrastructure.js b/js/artInfrastructure.js index b9d973164398cf69a43072c40f6f23ff6eb50a37..c709c72c0349619ae38fe5af057bf1af9e8c43b4 100644 --- a/js/artInfrastructure.js +++ b/js/artInfrastructure.js @@ -60,6 +60,10 @@ App.Art.SvgQueue = class { add(id) { const res = this._cache.get(id); let clones = []; + if (!res) { + console.error(`Missing art resource: ${id}`); + return; + } for (const srcNode of res.children) { /** @type {Element} */ const node = srcNode.cloneNode(true);