From ac4621f1cb7abbb01d10a3b84dfd8afdd701a784 Mon Sep 17 00:00:00 2001 From: ydb5755 Date: Sun, 13 Oct 2024 10:10:07 +0300 Subject: [PATCH] add conditions in varibales of line items to account for null results, display an empty string instead of null --- app/static/homepage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/static/homepage.js b/app/static/homepage.js index f81b21b..cb2419e 100644 --- a/app/static/homepage.js +++ b/app/static/homepage.js @@ -45,13 +45,13 @@ async function displayMonthLineItems(dateString){ const row = ` ${li.id} - ${li.parent_line_item_id} + ${li.parent_line_item_id || ''} ${li.amount} ${li.currency_type} ${li.vendor} ${li.date} ${li.confirmation_code} - ${li.note} + ${li.note || ''} Click to split line