From f806f0eb3cdc99e670c4de076de9330ecef4738a Mon Sep 17 00:00:00 2001 From: Vineet Reynolds Pereira Date: Tue, 7 Mar 2017 02:06:20 +0530 Subject: [PATCH] fix(spaces): Corrected URL used to update space instances. URL path should contain space Id and not name. --- src/app/spaces/space.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/spaces/space.service.ts b/src/app/spaces/space.service.ts index 37da7d6..8dbf967 100644 --- a/src/app/spaces/space.service.ts +++ b/src/app/spaces/space.service.ts @@ -110,7 +110,7 @@ export class SpaceService { } update(space: Space): Observable { - let url = `${this.spacesUrl}/${space.attributes.name}`; + let url = `${this.spacesUrl}/${space.id}`; let payload = JSON.stringify({data: space}); return this.http .patch(url, payload, {headers: this.headers})