mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-25 18:13:10 +03:00
fix: remove logs to console
This commit is contained in:
parent
dc005c1ac8
commit
ebefdc9aad
@ -61,7 +61,7 @@ export default class SlateMediaObject extends React.Component {
|
|||||||
const url = this.props.data.url.replace("https://undefined", "https://");
|
const url = this.props.data.url.replace("https://undefined", "https://");
|
||||||
const type = this.props.data.type ? this.props.data.type : "LEGACY_NO_TYPE";
|
const type = this.props.data.type ? this.props.data.type : "LEGACY_NO_TYPE";
|
||||||
const playType = typeMap[type] ? typeMap[type] : type;
|
const playType = typeMap[type] ? typeMap[type] : type;
|
||||||
console.log(this.props);
|
|
||||||
let element = <div css={STYLES_FAILURE}>No Preview</div>;
|
let element = <div css={STYLES_FAILURE}>No Preview</div>;
|
||||||
|
|
||||||
if (type.startsWith("application/pdf")) {
|
if (type.startsWith("application/pdf")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user