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