) {
const conditions = getConditions(node);
return (
{conditions.length > 0
? conditions.map((condition) => (
{condition.type}
))
: '-'}
);
}
function getConditions(node: NodeRowData) {
return (
// exclude the Ready condition as it is already being utilised in the Status column
node.status?.conditions?.filter(
(condition) => condition.type !== 'Ready'
) ?? []
);
}