fix availability call
This commit is contained in:
parent
7327b03c7f
commit
096659bc90
2 changed files with 2 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -8,6 +8,7 @@ dist
|
||||||
/lbry-app-venv
|
/lbry-app-venv
|
||||||
/daemon/build
|
/daemon/build
|
||||||
/daemon/venv
|
/daemon/venv
|
||||||
|
/daemon/requirements.txt
|
||||||
/.idea
|
/.idea
|
||||||
|
|
||||||
*.pyc
|
*.pyc
|
||||||
|
|
|
@ -261,7 +261,7 @@ export let FileActions = React.createClass({
|
||||||
componentDidMount: function() {
|
componentDidMount: function() {
|
||||||
this._isMounted = true;
|
this._isMounted = true;
|
||||||
this._fileInfoSubscribeId = lbry.fileInfoSubscribe(this.props.outpoint, this.onFileInfoUpdate);
|
this._fileInfoSubscribeId = lbry.fileInfoSubscribe(this.props.outpoint, this.onFileInfoUpdate);
|
||||||
lbry.getStreamAvailability(this.props.streamName, (availability) => {
|
lbry.getStreamAvailability(this.props.uri, (availability) => {
|
||||||
if (this._isMounted) {
|
if (this._isMounted) {
|
||||||
this.setState({
|
this.setState({
|
||||||
available: availability > 0,
|
available: availability > 0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue