以防万一

This commit is contained in:
liaoxuezhi 2020-08-10 21:59:42 +08:00
parent 9b43a888dd
commit 846067c05a
1 changed files with 6 additions and 0 deletions

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')