From e39f282abf49291b4a6f140164c762882fe2e778 Mon Sep 17 00:00:00 2001 From: Ziver Koc Date: Fri, 22 Mar 2024 01:41:40 +0100 Subject: [PATCH] robustness fix --- hal-core/resources/web/js/hal.js | 3 +++ .../resources/web/js/vue/components/EventActionComponent.js | 2 -- .../resources/web/js/vue/components/EventTableRowComponent.js | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hal-core/resources/web/js/hal.js b/hal-core/resources/web/js/hal.js index 82a97de7..e731b2e7 100644 --- a/hal-core/resources/web/js/hal.js +++ b/hal-core/resources/web/js/hal.js @@ -51,6 +51,9 @@ $.fn.relTimestamp = function() { // Converts all timestamps to human readable time and date function getRelTimestamp(timestamp) { + if (timestamp == null) + return ""; + let timestampNow = Date.now(); let timeDiff = timestampNow - timestamp; diff --git a/hal-core/resources/web/js/vue/components/EventActionComponent.js b/hal-core/resources/web/js/vue/components/EventActionComponent.js index 79df9d93..77550e31 100644 --- a/hal-core/resources/web/js/vue/components/EventActionComponent.js +++ b/hal-core/resources/web/js/vue/components/EventActionComponent.js @@ -17,8 +17,6 @@ export default {
-