nextProps.data 为 undefined 的问题修复
This commit is contained in:
parent
4cc799187d
commit
df027bd7ac
|
@ -633,7 +633,7 @@ export function HocStoreFactory(renderer:{
|
|||
|
||||
// todo fix: dialog 种数据从孩子 form 同步过来后,会走这个逻辑让 form 更新 data,会导致里面的 __prev 丢失。
|
||||
store.initData(newData);
|
||||
} else if ((nextProps.data as any).__super) {
|
||||
} else if (nextProps.data && (nextProps.data as any).__super) {
|
||||
store.initData(extendObject(nextProps.data));
|
||||
} else {
|
||||
store.initData(createObject(nextProps.scope, nextProps.data));
|
||||
|
|
Loading…
Reference in New Issue