Skip to content

Commit

Permalink
[ML] fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Oct 1, 2020
1 parent 35b1c8c commit c0759c3
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const AnnotationDescriptionList = ({ annotation, detectorDescription }: P
defaultMessage: 'Created by',
}
),
description: annotation.create_username,
description: annotation.create_username ?? '',
});
listItems.push({
title: i18n.translate(
Expand All @@ -79,7 +79,7 @@ export const AnnotationDescriptionList = ({ annotation, detectorDescription }: P
defaultMessage: 'Modified by',
}
),
description: annotation.modified_username,
description: annotation.modified_username ?? '',
});
}
if (detectorDescription !== undefined) {
Expand All @@ -94,19 +94,19 @@ export const AnnotationDescriptionList = ({ annotation, detectorDescription }: P
if (annotation.partition_field_name !== undefined) {
listItems.push({
title: annotation.partition_field_name,
description: annotation.partition_field_value,
description: annotation.partition_field_value ?? '',
});
}
if (annotation.over_field_name !== undefined) {
listItems.push({
title: annotation.over_field_name,
description: annotation.over_field_value,
description: annotation.over_field_value ?? '',
});
}
if (annotation.by_field_name !== undefined) {
listItems.push({
title: annotation.by_field_name,
description: annotation.by_field_value,
description: annotation.by_field_value ?? '',
});
}

Expand Down

0 comments on commit c0759c3

Please sign in to comment.