From b9b641ac1aabaec822c43f973895178ac34e304e Mon Sep 17 00:00:00 2001 From: Trevor Gau Date: Tue, 19 Dec 2017 11:13:21 -0500 Subject: [PATCH] Fix issue where updating capacity deletes previously set capacities in the same iteration. #194 --- src/Calendar/EventSources/VSOCapacityEventSource.ts | 2 +- vss-extension.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Calendar/EventSources/VSOCapacityEventSource.ts b/src/Calendar/EventSources/VSOCapacityEventSource.ts index bc4b028..e809111 100644 --- a/src/Calendar/EventSources/VSOCapacityEventSource.ts +++ b/src/Calendar/EventSources/VSOCapacityEventSource.ts @@ -484,7 +484,7 @@ export class VSOCapacityEventSource implements Calendar_Contracts.IEventSource { return workClient.getCapacities(teamContext, iterationId).then((capacities: Work_Contracts.TeamMemberCapacity[]) => { const foundCapacities = capacities.filter(value => value.teamMember.id === memberId); if (foundCapacities.length > 0) { - foundCapacities[0]; + return foundCapacities[0]; } const value = { diff --git a/vss-extension.json b/vss-extension.json index 538a6f7..0099a5a 100644 --- a/vss-extension.json +++ b/vss-extension.json @@ -2,7 +2,7 @@ "manifestVersion": 1, "id": "team-calendar", "publisher": "ms-devlabs", - "version": "0.5.197", + "version": "0.5.198", "name": "Team Calendar", "description": "Track events important to your team, view and manage days off, quickly see when sprints start and end, and more.", "public": true,