From fe62d499f6ca470adf06feaa30ca20470faf54d1 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Mon, 29 Apr 2024 00:32:29 +0200 Subject: [PATCH] we don't need to show '000' in the datatable --- assets/js/sections/contesting.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/js/sections/contesting.js b/assets/js/sections/contesting.js index 7ac932583..60a231002 100644 --- a/assets/js/sections/contesting.js +++ b/assets/js/sections/contesting.js @@ -53,13 +53,13 @@ async function reset_contest_session() { "columnDefs": [ { "render": function ( data, type, row ) { - return pad(row[8],3); + return row[8] !== null && row[8] !== '' ? pad(row[8], 3) : ''; }, "targets" : 8 }, { "render": function ( data, type, row ) { - return pad(row[9],3); + return row[9] !== null && row[9] !== '' ? pad(row[9], 3) : ''; }, "targets" : 9 } @@ -624,13 +624,13 @@ async function refresh_qso_table(data) { "columnDefs": [ { "render": function ( data, type, row ) { - return pad(row[8],3); + return row[8] !== null && row[8] !== '' ? pad(row[8], 3) : ''; }, "targets" : 8 }, { "render": function ( data, type, row ) { - return pad(row[9],3); + return row[9] !== null && row[9] !== '' ? pad(row[9], 3) : ''; }, "targets" : 9 }