Skip to content
Permalink
Browse files
fix validation for side-by-side teamId & customURL
  • Loading branch information
haraldox committed Feb 16, 2018
1 parent 683d834 commit bd51150ac641382275d096208b110b20c7ed6adc
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/containers/settings/EditServiceScreen.js
@@ -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

0 comments on commit bd51150

Please sign in to comment.