mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
fix previewFile error in uploadList
This commit is contained in:
parent
ddcd8ad701
commit
5476bf1afe
@ -29,6 +29,9 @@ export default React.createClass({
|
||||
this.props.onRemove(file);
|
||||
},
|
||||
componentDidUpdate() {
|
||||
if (this.props.listType !== 'picture') {
|
||||
return;
|
||||
}
|
||||
this.props.items.forEach(file => {
|
||||
if (typeof document === 'undefined' ||
|
||||
typeof window === 'undefined' ||
|
||||
|
Loading…
Reference in New Issue
Block a user