Skip to content

Commit 1fc5312

Browse files
committed
-> Empty study date is just a blank cell
1 parent 74fdbc6 commit 1fc5312

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

static/js/tables.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,10 +482,8 @@ define(['cartutils','filterutils','tippy','jquery', 'base'], function(cartutils,
482482
}
483483
});
484484
return deferred.promise();
485-
486485
}
487486

488-
489487
const caseTableColDefs = function(){
490488
return [
491489
{className: "ckbx studyview","targets": [0]},
@@ -927,6 +925,9 @@ define(['cartutils','filterutils','tippy','jquery', 'base'], function(cartutils,
927925
}
928926
}, {
929927
"type": "text", "orderable": true, data: 'StudyDate', render: function (data) {
928+
if(data === "" || data === undefined || data === null) {
929+
return "";
930+
}
930931
// fix when StudyData is an array of values
931932
var dt = new Date(Date.parse(data));
932933
var dtStr = (dt.getUTCMonth() + 1).toLocaleString('en-US', {minimumIntegerDigits: 2}) + "-" + dt.getUTCDate().toLocaleString('en-US', {minimumIntegerDigits: 2}) + "-" + dt.getUTCFullYear().toString();

0 commit comments

Comments
 (0)