diff options
author | 2018-02-16 12:43:21 +0100 | |
---|---|---|
committer | 2018-02-16 12:43:21 +0100 | |
commit | 8b81b0f9cae33ae5e882e8ec5cebc607db33e650 (patch) | |
tree | 516715e3a07a07a598ef2a9bf78ab9a8b8f0e3ca /src | |
parent | fix validation for side-by-side teamId & customURL (diff) | |
download | ferdium-app-8b81b0f9cae33ae5e882e8ec5cebc607db33e650.tar.gz ferdium-app-8b81b0f9cae33ae5e882e8ec5cebc607db33e650.tar.zst ferdium-app-8b81b0f9cae33ae5e882e8ec5cebc607db33e650.zip |
fix teamId & customUrl validation for hosted option
Diffstat (limited to 'src')
-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 90b5177a5..67c2731fc 100644 --- a/src/containers/settings/EditServiceScreen.js +++ b/src/containers/settings/EditServiceScreen.js | |||
@@ -146,10 +146,10 @@ export default class EditServiceScreen extends Component { | |||
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 |
147 | if (recipe.hasHostedOption && (recipe.hasTeamId || recipe.hasCustomUrl)) { | 147 | if (recipe.hasHostedOption && (recipe.hasTeamId || recipe.hasCustomUrl)) { |
148 | if (config.fields.team) { | 148 | if (config.fields.team) { |
149 | config.fields.team.validate = []; | 149 | config.fields.team.validators = []; |
150 | } | 150 | } |
151 | if (config.fields.customUrl) { | 151 | if (config.fields.customUrl) { |
152 | config.fields.customUrl.validate = [url]; | 152 | config.fields.customUrl.validators = [url]; |
153 | } | 153 | } |
154 | } | 154 | } |
155 | 155 | ||