Skip to content

Commit

Permalink
fix validation for side-by-side teamId & customURL
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldox committed Feb 16, 2018
1 parent 683d834 commit bd51150
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/containers/settings/EditServiceScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ export default class EditServiceScreen extends Component {

// More fine grained and use case specific validation rules
if (recipe.hasTeamId && recipe.hasCustomUrl) {
config.fields.team.validate = [oneRequired(['team', 'customUrl'])];
config.fields.customUrl.validate = [url, oneRequired(['team', 'customUrl'])];
config.fields.team.validators = [oneRequired(['team', 'customUrl'])];
config.fields.customUrl.validators = [url, oneRequired(['team', 'customUrl'])];
}

// If a service can be hosted and has a teamId or customUrl
Expand Down

0 comments on commit bd51150

Please sign in to comment.