From 43910796c38c03b02f472fe527b87a540cd76fff Mon Sep 17 00:00:00 2001 From: ncastejon <castejon.nicolas@gmail.com> Date: Wed, 20 Mar 2019 10:37:06 +0100 Subject: [PATCH] Fix: remove the id null when create a new organization --- src/app/services/organization.service.ts | 1 + src/environments/environment.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/services/organization.service.ts b/src/app/services/organization.service.ts index c4055c0..2343797 100644 --- a/src/app/services/organization.service.ts +++ b/src/app/services/organization.service.ts @@ -61,6 +61,7 @@ export class OrganizationService { } )); } + delete data.id; data.links.forEach((link) => { delete link.id; }); diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 4752652..ad23462 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -6,7 +6,7 @@ export const environment = { production: false, organizations: { - url: 'http://localhost:3001/organizations/', + url: 'http://localhost:3000/organizations/', }, resources: { url: 'http://localhost:3003/resources/', -- GitLab