以防万一
This commit is contained in:
parent
9b43a888dd
commit
846067c05a
|
@ -565,6 +565,12 @@ export const FormItemStore = types
|
||||||
|
|
||||||
const form = self.form;
|
const form = self.form;
|
||||||
const value = self.value;
|
const value = self.value;
|
||||||
|
|
||||||
|
// 有可能销毁了
|
||||||
|
if (!form) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const selected = Array.isArray(value)
|
const selected = Array.isArray(value)
|
||||||
? value.map(item =>
|
? value.map(item =>
|
||||||
item && item.hasOwnProperty(self.valueField || 'value')
|
item && item.hasOwnProperty(self.valueField || 'value')
|
||||||
|
|
Loading…
Reference in New Issue