Skip to content

Commit 76a79e3

Browse files
authored
Merge pull request #308 from UniversityRadioYork/mstratford/baps-id-null
Fix ID in popup is null, when trackId is present from baps, but it is null.
2 parents 35398d2 + d7e5738 commit 76a79e3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/showplanner/Item.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,12 @@ export const Item = memo(function Item({
167167
);
168168
}
169169
data.push(
170-
"ID: " + ("trackid" in x ? x.trackid : "managedid" in x && x.managedid)
170+
"ID: " +
171+
("trackid" in x && x.trackid
172+
? x.trackid
173+
: "managedid" in x && x.managedid
174+
? x.managedid
175+
: "None")
171176
);
172177
if (showDebug) {
173178
data.push(

0 commit comments

Comments
 (0)