fix: mergeDiff must default to full json with no uri

This commit is contained in:
cha0s 2019-05-17 05:34:32 -05:00
parent 6fb012090e
commit f6bbc7f6c3

View File

@ -250,6 +250,9 @@ export class Entity extends decorate(Resource) {
}
mergeDiff() {
if (!this.uri) {
return this.toJSON();
}
return mergeDiff(this._json, this.toJSON());
}