From 3fa94e0a972dfc45e1df52ade93df8617e7f22eb Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Sun, 5 Oct 2025 16:10:42 +0100 Subject: [PATCH 1/2] Fix ID in popup is null when trackId is present from baps but null. --- src/showplanner/Item.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/showplanner/Item.tsx b/src/showplanner/Item.tsx index 572de8c..fd9bdc8 100644 --- a/src/showplanner/Item.tsx +++ b/src/showplanner/Item.tsx @@ -167,7 +167,7 @@ export const Item = memo(function Item({ ); } data.push( - "ID: " + ("trackid" in x ? x.trackid : "managedid" in x && x.managedid) + "ID: " + ("trackid" in x && x.trackid ? x.trackid : "managedid" in x && x.managedid ? x.managedid : "None" ) ); if (showDebug) { data.push( From d7e5738fe57a86043d37cd842f3c10c173697be5 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Sun, 5 Oct 2025 16:21:42 +0100 Subject: [PATCH 2/2] Prettier --- src/showplanner/Item.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/showplanner/Item.tsx b/src/showplanner/Item.tsx index fd9bdc8..6aba551 100644 --- a/src/showplanner/Item.tsx +++ b/src/showplanner/Item.tsx @@ -167,7 +167,12 @@ export const Item = memo(function Item({ ); } data.push( - "ID: " + ("trackid" in x && x.trackid ? x.trackid : "managedid" in x && x.managedid ? x.managedid : "None" ) + "ID: " + + ("trackid" in x && x.trackid + ? x.trackid + : "managedid" in x && x.managedid + ? x.managedid + : "None") ); if (showDebug) { data.push(