This commit is contained in:
polatengin 2020-12-06 15:21:20 +03:00
Родитель f04c2ac7ff
Коммит 142c2972da
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 8764D8CBA74A14D7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -146,7 +146,7 @@ export default class ActionItem extends React.Component<ActionItemProps, ActionI
const workItemType: any = this.props.allWorkItemTypes.find(wit => wit.name === this.props.actionItem.fields['System.WorkItemType']);
const iconProps: IDocumentCardPreviewProps = this.getWorkItemTypeIconProps(workItemType);
// Explicitly cast, since the returned contract contains states, but the interface defined does not.
// Explicitly cast, since the returned contract contains states, but the interface defined does not
const workItemStates: WorkItemStateColor[] = workItemType.states ? workItemType.states : null;
const workItemState: WorkItemStateColor = workItemStates ? workItemStates.find(wisc => wisc.name === this.props.actionItem.fields['System.State']) : null;
const resolvedBorderRight: string = workItemState && (workItemState.category === 'Completed' || workItemState.category === 'Resolved') ? 'resolved-border-right' : '';