diff options
Diffstat (limited to 'src/containers/settings/EditServiceScreen.js')
-rw-r--r-- | src/containers/settings/EditServiceScreen.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/containers/settings/EditServiceScreen.js b/src/containers/settings/EditServiceScreen.js index 9084b9889..0ddb84db0 100644 --- a/src/containers/settings/EditServiceScreen.js +++ b/src/containers/settings/EditServiceScreen.js | |||
@@ -141,17 +141,17 @@ export default class EditServiceScreen extends Component { | |||
141 | 141 | ||
142 | // More fine grained and use case specific validation rules | 142 | // More fine grained and use case specific validation rules |
143 | if (recipe.hasTeamId && recipe.hasCustomUrl) { | 143 | if (recipe.hasTeamId && recipe.hasCustomUrl) { |
144 | config.fields.team.validate = [oneRequired(['team', 'customUrl'])]; | 144 | config.fields.team.validators = [oneRequired(['team', 'customUrl'])]; |
145 | config.fields.customUrl.validate = [url, oneRequired(['team', 'customUrl'])]; | 145 | config.fields.customUrl.validators = [url, oneRequired(['team', 'customUrl'])]; |
146 | } | 146 | } |
147 | 147 | ||
148 | // If a service can be hosted and has a teamId or customUrl | 148 | // If a service can be hosted and has a teamId or customUrl |
149 | if (recipe.hasHostedOption && (recipe.hasTeamId || recipe.hasCustomUrl)) { | 149 | if (recipe.hasHostedOption && (recipe.hasTeamId || recipe.hasCustomUrl)) { |
150 | if (config.fields.team) { | 150 | if (config.fields.team) { |
151 | config.fields.team.validate = []; | 151 | config.fields.team.validators = []; |
152 | } | 152 | } |
153 | if (config.fields.customUrl) { | 153 | if (config.fields.customUrl) { |
154 | config.fields.customUrl.validate = [url]; | 154 | config.fields.customUrl.validators = [url]; |
155 | } | 155 | } |
156 | } | 156 | } |
157 | 157 | ||