Skip to content
Snippets Groups Projects
Commit 664cbbe0 authored by svornost's avatar svornost
Browse files

Improve robustness of art asset lookup...if an asset is not found, issue a...

Improve robustness of art asset lookup...if an asset is not found, issue a console error and move on instead of crashing hard.
parent b15e9261
No related branches found
No related tags found
1 merge request!6893Improve robustness of art asset lookup
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment