From 69aa291367c331e4f354a17a43e2736a9b0de74c Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Wed, 31 Jul 2024 08:15:32 -0400 Subject: [PATCH] fix crash when data.type is invalid --- source/api/Items.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/api/Items.bs b/source/api/Items.bs index 718d184a2..1276a3097 100644 --- a/source/api/Items.bs +++ b/source/api/Items.bs @@ -95,7 +95,7 @@ function ItemMetaData(id as string) tmp.image = PosterImage(data.id, imgParams) tmp.json = data return tmp - else if LCase(data.type) = "recording" + else if data.type = "Recording" tmp = CreateObject("roSGNode", "RecordingData") tmp.image = PosterImage(data.id, imgParams) tmp.json = data