lifecycles

This commit is contained in:
wanying.jwy 2020-09-04 10:44:23 +08:00
parent 9d19731a0c
commit fe50442bb1

View File

@ -146,7 +146,9 @@ designer.addPropsReducer((props: any, node: Node) => {
};
const lifeCycles = props.lifeCycles;
Object.keys(lifeCycleMap).forEach(key => {
lifeCycles[lifeCycleMap[key]] = lifeCycles[key];
if (lifeCycles[key]) {
lifeCycles[lifeCycleMap[key]] = lifeCycles[key];
}
});
return props;
}