fix: only accept trait updates
This commit is contained in:
parent
cf44d3609f
commit
7901079054
|
@ -38,9 +38,11 @@ export function lookupTrait(type) {
|
|||
|
||||
registerHooks({
|
||||
autoreg$accept: (type, M) => {
|
||||
if ('trait' === type) {
|
||||
const {default: Trait} = M;
|
||||
typeTo.set(Trait.type(), Trait);
|
||||
traitTo.set(Trait, M);
|
||||
}
|
||||
},
|
||||
}, '@avocado/entity/trait/registrar');
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user