fix: addTrait default to empty json
This commit is contained in:
parent
30e286b68c
commit
03dcc84ca0
|
@ -63,7 +63,7 @@ export class Traits {
|
|||
return Object.keys(this.traits_PRIVATE);
|
||||
}
|
||||
|
||||
addTrait(type, json) {
|
||||
addTrait(type, json = {}) {
|
||||
if (this.hasTrait(type)) {
|
||||
debug(`Tried to add trait "${type}" when it already exists!`);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user