Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
djhi committed May 24, 2017
1 parent d6d6e76 commit 7d33173
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mui/input/FileInputPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export class FileInputPreview extends Component {
componentWillUnmount() {
const { file } = this.props;

window.URL.revokeObjectURL(file.preview);
if (file.preview) {
window.URL.revokeObjectURL(file.preview);
}
}

handleMouseOut = () => this.setState({ hovered: false });
Expand Down

0 comments on commit 7d33173

Please sign in to comment.