Skip to content

Commit 52439a9

Browse files
Adds null check on Azure issue assignees
1 parent 4ebb897 commit 52439a9

File tree

1 file changed

+3
-1
lines changed
  • src/plus/integrations/providers/azure

1 file changed

+3
-1
lines changed

src/plus/integrations/providers/azure/models.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,9 @@ export function fromAzureWorkItem(
522522
isClosedAzureWorkItemStateCategory(stateCategory),
523523
azureWorkItemsStateCategoryToState(stateCategory),
524524
fromAzureUserToMember(workItem.fields['System.CreatedBy'], 'issue'),
525-
[fromAzureUserToMember(workItem.fields['System.AssignedTo'], 'issue')],
525+
workItem.fields['System.AssignedTo'] != null
526+
? [fromAzureUserToMember(workItem.fields['System.AssignedTo'], 'issue')]
527+
: [],
526528
undefined,
527529
workItem.fields['Microsoft.VSTS.Common.ClosedDate']
528530
? new Date(workItem.fields['Microsoft.VSTS.Common.ClosedDate'])

0 commit comments

Comments
 (0)