Skip to content

Commit

Permalink
fix(Service Import): Fix issue with import of on-premise services
Browse files Browse the repository at this point in the history
  • Loading branch information
adlk committed Oct 30, 2017
1 parent 2e07a02 commit 7c7d27d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/stores/ServicesStore.js
Expand Up @@ -145,21 +145,19 @@ export default class ServicesStore extends Store {
serviceData.name = data.name;
}

if (data.team) {
if (data.team && !data.customURL) {
serviceData.team = data.team;
}

if (data.team) {
serviceData.customUrl = data.customURL;
if (data.team && data.customURL) {
serviceData.customUrl = data.team;
}

this.actions.service.createService({
recipeId: id,
serviceData,
redirect: false,
});

return 'hello world';
}

@action async _updateService({ serviceId, serviceData, redirect = true }) {
Expand Down

0 comments on commit 7c7d27d

Please sign in to comment.