mirror of
https://github.com/minio/minio.git
synced 2025-04-01 10:13:42 -04:00
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 = {
|
this.state = {
|
||||||
url: "",
|
url: "",
|
||||||
}
|
}
|
||||||
props.getObjectURL(props.object.name, (url) => {
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
this.props.getObjectURL(this.props.object.name, (url) => {
|
||||||
this.setState({
|
this.setState({
|
||||||
url: url,
|
url: url,
|
||||||
})
|
})
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user