Skip to content

Commit

Permalink
Fixes broken image preview for anon user (minio#9584)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebozduman authored May 13, 2020
1 parent 6ac48a6 commit ead3c18
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 42 deletions.
5 changes: 4 additions & 1 deletion browser/app/js/objects/PreviewObjectModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ class PreviewObjectModal extends React.Component {
this.state = {
url: "",
}
props.getObjectURL(props.object.name, (url) => {
}

componentDidMount() {
this.props.getObjectURL(this.props.object.name, (url) => {
this.setState({
url: url,
})
Expand Down
Loading

0 comments on commit ead3c18

Please sign in to comment.