Versions won't always have an update time? (broke in unit test)

This commit is contained in:
Dannon Baker
2022-04-23 09:49:08 -04:00
parent d0f25e915c
commit 2ef230c5f6
@@ -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,