Skip to content

Commit

Permalink
correct merge mistake
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Weirich <matthias.weirich@selectcode.de>
  • Loading branch information
vavido committed Apr 9, 2021
1 parent b2ee82d commit a8836af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javascript/lib/api/src/model/things.model.ts
Expand Up @@ -60,8 +60,8 @@ export class Thing extends EntityWithId {
}

public toObject(): object {
const featuresObj = Features.toObject(this.features);
const aclObj = Acl.toObject(this._acl);
const featuresObj = this.features ? Features.toObject(this.features) : undefined;
const aclObj = this._acl ? Acl.toObject(this._acl) : undefined;
return EntityModel.buildObject(new Map<string, any>([
['thingId', this.thingId],
['policyId', this.policyId],
Expand Down

0 comments on commit a8836af

Please sign in to comment.