Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Fix #203 (#205)
Browse files Browse the repository at this point in the history
UrlBuilder introduced this issue. The problem is that when pushing the object onto results, id was being pushed as a number (not a string).  The client was then assuming the value was a string (since ...args was typed as string[]).  That typing was no help here.
  • Loading branch information
Jeff Young authored May 3, 2017
1 parent a56e41f commit c0772a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/services/workitemtracking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,10 @@ export class WorkItemTrackingService {
//Keep original sort order that wiql specified
for (let index: number = 0; index < workItemIds.length; index++) {
const item: WorkItem = workItems.find((i) => i.id === workItemIds[index]);
const id: string = item.id.toString();
results.push({
id: item.fields[WorkItemFields.Id],
label: item.fields[WorkItemFields.Id] + " [" + item.fields[WorkItemFields.WorkItemType] + "]",
id: id,
label: `${id} [${item.fields[WorkItemFields.WorkItemType]}]`,
description: item.fields[WorkItemFields.Title]
});
}
Expand Down

0 comments on commit c0772a8

Please sign in to comment.