chore: tidy

This commit is contained in:
cha0s 2020-06-21 22:45:05 -05:00
parent bc1ca174b0
commit 9671f77b7d

View File

@ -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,
};
});
});