From 2ef230c5f6f292406090dbe5c62a202cae652272 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Sat, 23 Apr 2022 09:49:08 -0400 Subject: [PATCH] Versions won't always have an update time? (broke in unit test) --- client/src/components/Workflow/Editor/Attributes.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/src/components/Workflow/Editor/Attributes.vue b/client/src/components/Workflow/Editor/Attributes.vue index 3569dafa497..4bdb87ec1d2 100644 --- a/client/src/components/Workflow/Editor/Attributes.vue +++ b/client/src/components/Workflow/Editor/Attributes.vue @@ -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,