diff --git a/pkg/harvester/pages/c/_cluster/vm-migration/index.vue b/pkg/harvester/pages/c/_cluster/vm-migration/index.vue index ea0ecb4f..10f7d789 100644 --- a/pkg/harvester/pages/c/_cluster/vm-migration/index.vue +++ b/pkg/harvester/pages/c/_cluster/vm-migration/index.vue @@ -99,12 +99,12 @@ const formatPipelineTooltip = (pipeline = []) => { }; const formatDuration = (started, completed) => { - if (!started || !completed) { + if (!started) { return { display: null, seconds: -1 }; } const startMs = new Date(started).getTime(); - const endMs = new Date(completed).getTime(); + const endMs = completed ? new Date(completed).getTime() : Date.now(); if (isNaN(startMs) || isNaN(endMs) || endMs < startMs) { return { display: null, seconds: -1 };