Skip to content

Commit bd51150

Browse files
committed
fix validation for side-by-side teamId & customURL
1 parent 683d834 commit bd51150

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/containers/settings/EditServiceScreen.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ export default class EditServiceScreen extends Component {
139139

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

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

0 commit comments

Comments
 (0)