Fixes broken image preview for anon user (#9584)

master
ebozduman 5 years ago committed by GitHub
parent 6ac48a65cb
commit ead3c186a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      browser/app/js/objects/PreviewObjectModal.js
  2. 84
      browser/ui-assets.go

@ -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…
Cancel
Save