Skip to content

Commit

Permalink
fix(deployment): disable feed deployment if no versions exist
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed Feb 22, 2018
1 parent fdb2840 commit 46a4005
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/manager/components/version/FeedVersionNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ export default class FeedVersionNavigator extends Component {
<ButtonGroup>
{isModuleEnabled('deployment') && !isPublic
? <Button
disabled={disabled} // || !feedSource.latestValidation}
// Disable deployment if not permitted or no version exists
disabled={disabled || !hasVersions}
onClick={this._createDeployment}>
<Icon type='globe' /> Deploy feed
</Button>
Expand Down

0 comments on commit 46a4005

Please sign in to comment.