chore: tidy
This commit is contained in:
parent
bc1ca174b0
commit
9671f77b7d
|
@ -18,8 +18,8 @@ const mergeEntityWithDefaults = (entity) => {
|
|||
const {params, state} = trait;
|
||||
const Trait = lookupTrait(type);
|
||||
draft.traits[type] = {
|
||||
params: Trait ? {...Trait.defaultParams(), ...params} : params,
|
||||
state: Trait ? {...Trait.defaultState(), ...state} : state,
|
||||
params: Trait ? Trait.defaultParamsWith(params) : params,
|
||||
state: Trait ? Trait.defaultStateWith(state) : state,
|
||||
};
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user