[ARVADOS-WORKBENCH2] updated: 1.2.0-276-g7f2055d

Git user git at public.curoverse.com
Tue Sep 4 08:22:40 EDT 2018


Summary of changes:
 src/common/formatters.ts                             | 2 +-
 src/views/process-panel/process-information-card.tsx | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

       via  7f2055dd51e545eb9f9998d001ec6badfa9f0bb7 (commit)
      from  1703f15adf9e3875ff0c78ce78117a87b70ca05c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 7f2055dd51e545eb9f9998d001ec6badfa9f0bb7
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date:   Tue Sep 4 14:22:28 2018 +0200

    deleted '!'
    
    Feature #13860
    
    Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>

diff --git a/src/common/formatters.ts b/src/common/formatters.ts
index e209787..737ca96 100644
--- a/src/common/formatters.ts
+++ b/src/common/formatters.ts
@@ -2,7 +2,7 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-export const formatDate = (isoDate?: string) => {
+export const formatDate = (isoDate?: string | null) => {
     if (isoDate) {
         const date = new Date(isoDate);
         const text = date.toLocaleString();
diff --git a/src/views/process-panel/process-information-card.tsx b/src/views/process-panel/process-information-card.tsx
index 788f253..287b725 100644
--- a/src/views/process-panel/process-information-card.tsx
+++ b/src/views/process-panel/process-information-card.tsx
@@ -110,9 +110,9 @@ export const ProcessInformationCard = withStyles(styles, { withTheme: true })(
                 <Grid container>
                     <Grid item xs={6}>
                         <DetailsAttribute classLabel={classes.label} classValue={classes.value}
-                            label='From' value={process.container ? formatDate(process.container.startedAt!) : 'N/A'} />
+                            label='From' value={process.container ? formatDate(process.container.startedAt) : 'N/A'} />
                         <DetailsAttribute classLabel={classes.label} classValue={classes.value}
-                            label='To' value={process.container ? formatDate(process.container.finishedAt!) : 'N/A'} />
+                            label='To' value={process.container ? formatDate(process.container.finishedAt) : 'N/A'} />
                         <DetailsAttribute classLabel={classes.label} classValue={classes.link}
                             label='Workflow' value='???' />
                     </Grid>

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list