mirror of https://github.com/minio/minio.git
Fixes broken image preview for anon user (#9584)
This commit is contained in:
parent
6ac48a65cb
commit
ead3c186a6
|
@ -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,
|
||||
})
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue