aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Ricardo Cino <ricardo@cino.io>2022-06-30 10:40:14 +0200
committerLibravatar GitHub <noreply@github.com>2022-06-30 09:40:14 +0100
commit81bc69d89bae539d59c3f587350f1719327d80af (patch)
tree592b61f13a885436df5e2f18eb4c7e8c3b8f5257 /src
parent6.0.0-nightly.82 [skip ci] (diff)
downloadferdium-app-81bc69d89bae539d59c3f587350f1719327d80af.tar.gz
ferdium-app-81bc69d89bae539d59c3f587350f1719327d80af.tar.zst
ferdium-app-81bc69d89bae539d59c3f587350f1719327d80af.zip
fix: don't break when when service is undefined on adding a new service (#400)
Diffstat (limited to 'src')
-rw-r--r--src/components/settings/services/EditServiceForm.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/settings/services/EditServiceForm.js b/src/components/settings/services/EditServiceForm.js
index abab49f77..e6cd68252 100644
--- a/src/components/settings/services/EditServiceForm.js
+++ b/src/components/settings/services/EditServiceForm.js
@@ -247,9 +247,9 @@ class EditServiceForm extends Component {
247 ); 247 );
248 248
249 let activeTabIndex = 0; 249 let activeTabIndex = 0;
250 if (recipe.hasHostedOption && service.team) { 250 if (recipe.hasHostedOption && service?.team) {
251 activeTabIndex = 1; 251 activeTabIndex = 1;
252 } else if (recipe.hasHostedOption && service.customUrl) { 252 } else if (recipe.hasHostedOption && service?.customUrl) {
253 activeTabIndex = 2; 253 activeTabIndex = 2;
254 } 254 }
255 255