INFRA-2867 | fix sorting
This commit is contained in:
@@ -93,7 +93,8 @@ const SearchResultsTable: FC<SearchResultTableProps> = ({
|
||||
?.join(', ');
|
||||
if (productNames.length <= MAX_LENGTH) return productNames;
|
||||
|
||||
const truncatedProducts = productNames?.substring(0, MAX_LENGTH - 3) + '...';
|
||||
const truncatedProducts =
|
||||
productNames?.substring(0, MAX_LENGTH - 3) + '...';
|
||||
const moreToShow = products?.length - truncatedProducts?.split(',').length;
|
||||
const tooltipContent = products?.map((product: Team, index) => (
|
||||
<div className={styles['productTooltipItem']} key={index}>
|
||||
|
||||
@@ -43,7 +43,7 @@ const initialState: IncidentLogPageState = {
|
||||
updatedAt: null,
|
||||
rcaLink: '',
|
||||
assignerTeam: null,
|
||||
products: null,
|
||||
products: [],
|
||||
},
|
||||
headerData: {
|
||||
severities: [],
|
||||
|
||||
2
src/types/index.d.ts
vendored
2
src/types/index.d.ts
vendored
@@ -82,7 +82,7 @@ export interface IncidentDatatype {
|
||||
updatedAt: Date | null;
|
||||
rcaLink: string;
|
||||
assignerTeam: Team | null;
|
||||
products: Team[] | null;
|
||||
products: Team[];
|
||||
}
|
||||
|
||||
interface Severity {
|
||||
|
||||
Reference in New Issue
Block a user