From b1f5d35f7315ba8f2e0f8e0da905383b2c0f29eb Mon Sep 17 00:00:00 2001 From: Deluan Date: Mon, 11 May 2020 22:04:35 -0400 Subject: [PATCH] Fix DurationField breaking when the record does not have the source field --- ui/src/common/DurationField.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/common/DurationField.js b/ui/src/common/DurationField.js index 3fd3033d..fb613c71 100644 --- a/ui/src/common/DurationField.js +++ b/ui/src/common/DurationField.js @@ -5,8 +5,8 @@ const DurationField = ({ record = {}, source }) => { try { return {format(record[source])} } catch (e) { - console.log('Error in DurationField !!! record=', record) - throw e + console.log('Error in DurationField! Record:', record) + return 00:00 } }