From 24cc7ce6059ebb979f064587196fa1e718a2f6aa Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Mon, 6 Jan 2025 22:04:18 -0500 Subject: [PATCH] fixes for Patches / Star bug --- backend/controllers/calls.js | 1 + frontend/src/Call/components/CallInfoPane.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/controllers/calls.js b/backend/controllers/calls.js index 6c0696d..060e820 100644 --- a/backend/controllers/calls.js +++ b/backend/controllers/calls.js @@ -210,6 +210,7 @@ function package_call(item) { time: item.time, timeString: timeString, dateString: dateString, + patches: item.patches, path: item.path, name: item.name, freq: item.freq, diff --git a/frontend/src/Call/components/CallInfoPane.js b/frontend/src/Call/components/CallInfoPane.js index fdb581b..a92c368 100644 --- a/frontend/src/Call/components/CallInfoPane.js +++ b/frontend/src/Call/components/CallInfoPane.js @@ -55,7 +55,7 @@ function CallInfoPane(props) { talkgroupNum = currentCall.talkgroupNum; patches = currentCall.patches; - if(patches.length > 1) { + if(patches && (patches.length > 1)) { patchString = patches.join(", "); } else{