diff --git a/js/component/file-actions.js b/js/component/file-actions.js index 9e9ccc12e..ec4a14e06 100644 --- a/js/component/file-actions.js +++ b/js/component/file-actions.js @@ -61,7 +61,7 @@ export let FileActions = React.createClass({ path: React.PropTypes.string, hidden: React.PropTypes.bool, deleteChecked: React.PropTypes.bool, - onRemove: React.PropTypes.function, + onRemove: React.PropTypes.func, }, getInitialState: function() { return { @@ -191,7 +191,7 @@ export let FileActions = React.createClass({ return (
- {this.props.metadata.content_type.startsWith('video/') ? : null} + {(this.props.metadata.content_type && this.props.metadata.content_type.startsWith('video/')) ? : null} {this.state.fileInfo !== null || this.state.fileInfo.isMine ?
{linkBlock}
: null} @@ -218,4 +218,4 @@ export let FileActions = React.createClass({
); } -}); \ No newline at end of file +}); diff --git a/js/component/form.js b/js/component/form.js index 27a7c977a..ae4135a29 100644 --- a/js/component/form.js +++ b/js/component/form.js @@ -1,4 +1,5 @@ import React from 'react'; +import {Icon} from './common.js'; var requiredFieldWarningStyle = { color: '#cc0000', diff --git a/js/lbry.js b/js/lbry.js index 12ba61707..65fb4e821 100644 --- a/js/lbry.js +++ b/js/lbry.js @@ -308,12 +308,7 @@ lbry.publish = function(params, fileListedCallback, publishedCallback, errorCall // lbry.getFilesInfo() during the publish process. // Use ES6 named arguments instead of directly passing param dict? - lbry.call('publish', params, publishedCallback, (errorInfo) => { - errorCallback({ - name: fault.fault, - message: fault.faultString, - }); - }); + lbry.call('publish', params, publishedCallback, errorCallback); if (fileListedCallback) { lbry.getFileInfoWhenListed(params.name, function(fileInfo) { fileListedCallback(fileInfo);