diff --git a/packages/entity/entity.synchronized.js b/packages/entity/entity.synchronized.js index bcd417a..abc4414 100644 --- a/packages/entity/entity.synchronized.js +++ b/packages/entity/entity.synchronized.js @@ -393,14 +393,16 @@ export class Entity extends decorate(Resource) { toNetwork(informed) { const json = { - ...super.toJSON(), - instanceUuid: this.instanceUuid, traits: {}, }; for (const type in this._traits) { json.traits[type] = this._traits[type].toNetwork(informed); } - return this.mergeDiff(json); + return { + ...super.toJSON(), + instanceUuid: this.instanceUuid, + ...this.mergeDiff(json), + }; } toJSON() {