fix: include URI in loaded Resource
This commit is contained in:
parent
f308ebb469
commit
4342590c56
|
@ -27,7 +27,10 @@ export class Resource extends decorate(class {}) {
|
|||
|
||||
static load(uri) {
|
||||
return this.read(uri).then((json) => {
|
||||
return new this(json);
|
||||
return new this({
|
||||
uri,
|
||||
...json,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user