以防万一

This commit is contained in:
liaoxuezhi 2020-08-10 21:59:42 +08:00
parent c35b38753c
commit 989f9478ea

View File

@ -565,6 +565,12 @@ export const FormItemStore = types
const form = self.form;
const value = self.value;
// 有可能销毁了
if (!form) {
return;
}
const selected = Array.isArray(value)
? value.map(item =>
item && item.hasOwnProperty(self.valueField || 'value')