From 1b2f9a43c3603eb2f2673f61ef767967fc723618 Mon Sep 17 00:00:00 2001 From: William Moore Date: Tue, 2 May 2023 13:17:52 +0100 Subject: [PATCH] OME.formatDate handles null input --- .../static/webclient/javascript/ome.webclient.actions.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/omeroweb/webclient/static/webclient/javascript/ome.webclient.actions.js b/omeroweb/webclient/static/webclient/javascript/ome.webclient.actions.js index ef513e355e..aa483cbb1b 100644 --- a/omeroweb/webclient/static/webclient/javascript/ome.webclient.actions.js +++ b/omeroweb/webclient/static/webclient/javascript/ome.webclient.actions.js @@ -732,6 +732,9 @@ OME.handleDelete = function(deleteUrl, filesetCheckUrl, userId) { // Format a date like "2015-06-15 12:08:01" OME.formatDate = function formatDate(date) { + if (!date) { + return ""; + } function padZero(number) { var n = "" + number; if (n.length < 2) {