Fixed broken commit
Previous commit runs only in dev
This commit is contained in:
@@ -181,7 +181,11 @@ function getCellValue(userstory: Userstory, header: TableHeader): string | numbe
|
|||||||
return userstory.status_extra_info?.name || userstory.status?.toString() || "";
|
return userstory.status_extra_info?.name || userstory.status?.toString() || "";
|
||||||
}
|
}
|
||||||
const value = userstory[header.key as keyof Userstory];
|
const value = userstory[header.key as keyof Userstory];
|
||||||
return value ?? "";
|
|
||||||
|
if (value === null) return null;
|
||||||
|
if (typeof value === "string" || typeof value === "number") return value;
|
||||||
|
if (value === undefined) return "";
|
||||||
|
return String(value);
|
||||||
} else {
|
} else {
|
||||||
if (header.attributeId === undefined) return "N/A (no attr ID)";
|
if (header.attributeId === undefined) return "N/A (no attr ID)";
|
||||||
|
|
||||||
@@ -189,8 +193,13 @@ function getCellValue(userstory: Userstory, header: TableHeader): string | numbe
|
|||||||
if (attributes) {
|
if (attributes) {
|
||||||
// Ключи для кастомных полей приходят как строки
|
// Ключи для кастомных полей приходят как строки
|
||||||
const attrValue = attributes[header.attributeId.toString()];
|
const attrValue = attributes[header.attributeId.toString()];
|
||||||
return attrValue ?? "";
|
|
||||||
|
if (attrValue === null) return null;
|
||||||
|
if (typeof attrValue === "string" || typeof attrValue === "number") return attrValue;
|
||||||
|
if (attrValue === undefined) return "";
|
||||||
|
return String(attrValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isLoadingAttributesForAnyStory.value && !dataStore.userstoryAttributesMap.has(userstory.id)) {
|
if (isLoadingAttributesForAnyStory.value && !dataStore.userstoryAttributesMap.has(userstory.id)) {
|
||||||
return "...";
|
return "...";
|
||||||
}
|
}
|
||||||
@@ -213,7 +222,6 @@ function getCellValue(userstory: Userstory, header: TableHeader): string | numbe
|
|||||||
}
|
}
|
||||||
table thead tr th {
|
table thead tr th {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
/* cursor: pointer; is added inline for now */
|
|
||||||
}
|
}
|
||||||
table thead tr th:hover {
|
table thead tr th:hover {
|
||||||
background-color: #f2f2f2;
|
background-color: #f2f2f2;
|
||||||
|
|||||||
Reference in New Issue
Block a user