Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii.com>
}
return text === 'Invalid Date' ? '(none)' : text;
}
- return '(none)';
+ return '-';
};
export const formatFileSize = (size?: number | string) => {
}
}
if ((typeof size === 'string' && size === '') || size === undefined) {
- return '';
+ return '-';
}
return '0 B';
};
};
})((props: { ownerUuid?: string, uuidPrefix: string }) => renderWorkflowStatus(props.uuidPrefix, props.ownerUuid));
-const renderProcessState = (processState: string) => <Typography>{processState}</Typography>
+const renderProcessState = (processState: string) => <Typography>{processState || '-'}</Typography>
export const ResourceProcessState = connect(
(state: RootState, props: { uuid: string }) => {
const renderOwner = (owner: string) =>
<Typography noWrap>
- {owner}
+ {owner || '-'}
</Typography>;
export const ResourceOwner = connect(