Fixes broken image preview for anon user (#9584)

This commit is contained in:
ebozduman 2020-05-13 13:26:12 -07:00 committed by GitHub
parent 6ac48a65cb
commit ead3c186a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 42 deletions

View File

@ -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