19690: fixed stray null description
[arvados-workbench2.git] / src / views-components / data-explorer / renderers.tsx
index ea4b85124af21fff19a30abd4e9c8a4f1e6f4ff6..0e7c0cd56ecf2ddb345bba50ef542ebfa946b384 100644 (file)
@@ -725,14 +725,14 @@ export const ResourceOwnerName = connect(
 
     
 const renderDescription = (description: string)=>{
-    const truncatedDescription = description.slice(0, 18) + '...'
+    const truncatedDescription = description ? description.slice(0, 18) + '...' : '-'
     return <Typography title={description}>{truncatedDescription}</Typography>;
 }
     
 export const ResourceDescription = connect(
     (state: RootState, props: { uuid: string }) => {
         const resource = getResource<GroupContentsResource>(props.uuid)(state.resources);
-        //testing
+        //testing---------------
         const containerRequestDescription = "This is a description for a Container Request, also known as a 'Process'. I'm still not 100% sure why one term is used over the other in practice, but I'm new here so I expect it will become clear to me when it's appropriate. This long bit of text is for testing purposes. -LK"
         if (resource && !resource.description && resource.kind === ResourceKind.PROCESS) resource.description = containerRequestDescription
         return { description: resource ? resource.description : '' };