Skip to content

Commit

Permalink
Fix an issue when update button is disabled for global libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Oct 27, 2020
1 parent 5515cec commit 952e449
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/modules/library/components/storage-item.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,14 @@ export default class LibraryStorageItem extends React.Component {
loading={this.state.actionInProgress}
disabled={
this.state.actionInProgress ||
this.props.item.versionWanted !== this.props.item.versionLatest
(this.props.item.versionWanted &&
this.props.item.versionWanted !== this.props.item.versionLatest)
}
onClick={e => this.onDidUninstallOrUpdateItem(e, 'update')}
>
{this.props.item.versionWanted
? `Update to ${this.props.item.versionLatest}${
this.props.item.versionWanted &&
this.props.item.versionWanted !== this.props.item.versionLatest
? ' (incompatible)'
: ''
Expand Down

0 comments on commit 952e449

Please sign in to comment.