diff options
author | 2018-02-16 12:39:31 +0100 | |
---|---|---|
committer | 2018-02-16 12:39:31 +0100 | |
commit | bd51150ac641382275d096208b110b20c7ed6adc (patch) | |
tree | c7c64c7f819db8b35e819134da0cf669a2ab504b /src/containers | |
parent | [MINOR] string correction (diff) | |
download | ferdium-app-bd51150ac641382275d096208b110b20c7ed6adc.tar.gz ferdium-app-bd51150ac641382275d096208b110b20c7ed6adc.tar.zst ferdium-app-bd51150ac641382275d096208b110b20c7ed6adc.zip |
fix validation for side-by-side teamId & customURL
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/settings/EditServiceScreen.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/containers/settings/EditServiceScreen.js b/src/containers/settings/EditServiceScreen.js index 00e888cc4..90b5177a5 100644 --- a/src/containers/settings/EditServiceScreen.js +++ b/src/containers/settings/EditServiceScreen.js | |||
@@ -139,8 +139,8 @@ export default class EditServiceScreen extends Component { | |||
139 | 139 | ||
140 | // More fine grained and use case specific validation rules | 140 | // More fine grained and use case specific validation rules |
141 | if (recipe.hasTeamId && recipe.hasCustomUrl) { | 141 | if (recipe.hasTeamId && recipe.hasCustomUrl) { |
142 | config.fields.team.validate = [oneRequired(['team', 'customUrl'])]; | 142 | config.fields.team.validators = [oneRequired(['team', 'customUrl'])]; |
143 | config.fields.customUrl.validate = [url, oneRequired(['team', 'customUrl'])]; | 143 | config.fields.customUrl.validators = [url, oneRequired(['team', 'customUrl'])]; |
144 | } | 144 | } |
145 | 145 | ||
146 | // If a service can be hosted and has a teamId or customUrl | 146 | // If a service can be hosted and has a teamId or customUrl |