This is an automated email from the ASF dual-hosted git repository.

e2corporation pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 7110aaf7 fix: fix bug on update time (#2980)
7110aaf7 is described below

commit 7110aaf7055fefad8b670d2316a1bb5f5b1b5c62
Author: likyh <[email protected]>
AuthorDate: Tue Sep 6 22:34:16 2022 +0800

    fix: fix bug on update time (#2980)
    
    Co-authored-by: linyh <[email protected]>
---
 config-ui/src/components/pipelines/StageTaskName.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config-ui/src/components/pipelines/StageTaskName.jsx 
b/config-ui/src/components/pipelines/StageTaskName.jsx
index 4f532656..ee722e2e 100644
--- a/config-ui/src/components/pipelines/StageTaskName.jsx
+++ b/config-ui/src/components/pipelines/StageTaskName.jsx
@@ -165,7 +165,7 @@ const StageTaskName = (props) => {
                 )}
                 <div style={{ marginTop: '6px' }}>
                   <label style={{ color: Colors.GRAY2 }}>Updated</label><br />
-                  <span>{dayjs(task.UpdatedAt).format('L LT')}</span>
+                  <span>{task.updatedAt ? dayjs(task.updatedAt).format('L LT') 
: '-'}</span>
                 </div>
               </div>
             )}

Reply via email to