fix: test

This commit is contained in:
cha0s 2024-07-20 02:32:50 -05:00
parent da13852216
commit 13b457210e

View File

@ -99,7 +99,9 @@ class LayerProxy {
return this.instance.layers[this.index];
}
async load() {
this.$$sourceJson = await this.Component.ecs.readJson(this.layer.source);
this.$$sourceJson = this.layer.source
? await this.Component.ecs.readJson(this.layer.source)
: {};
}
get source() {
return this.layer.source;