mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Versions won't always have an update time? (broke in unit test)
This commit is contained in:
@@ -136,7 +136,12 @@ export default {
|
||||
const versions = [];
|
||||
for (let i = 0; i < this.versions.length; i++) {
|
||||
const current_wf = this.versions[i];
|
||||
const update_time = format(Date.parse(current_wf.update_time), "MMM do yyyy");
|
||||
let update_time;
|
||||
if (current_wf.update_time) {
|
||||
update_time = `${format(Date.parse(current_wf.update_time), "MMM do yyyy")}, `;
|
||||
} else {
|
||||
update_time = "";
|
||||
}
|
||||
const label = `${current_wf.version + 1}: ${update_time}, ${current_wf.steps} steps`;
|
||||
versions.push({
|
||||
version: i,
|
||||
|
||||
Reference in New Issue
Block a user