diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bce259a..22a2993b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add watched videos to Invidious watch history ### Fixed -- A crash where the metadata of a video is not validated #57 +- A crash where the metadata of a video is not validated [#57](https://github.com/iBicha/playlet/issues/57) +- A crash where the video details in home screen are null [#56](https://github.com/iBicha/playlet/issues/56) ## [0.8.0] - 2023-03-02 ### Added diff --git a/playlet-lib/src/components/HomeGridScreen/HomeGridScreen.bs b/playlet-lib/src/components/HomeGridScreen/HomeGridScreen.bs index cc26a8b6..e991899f 100644 --- a/playlet-lib/src/components/HomeGridScreen/HomeGridScreen.bs +++ b/playlet-lib/src/components/HomeGridScreen/HomeGridScreen.bs @@ -57,10 +57,15 @@ function StartFetchTask() as void StartAsyncTask(GetHomeScreenContent, { index: currentLoadingIndex, requestData: m.defaultLayout[currentLoadingIndex] - }, function(output as object) + }, function(output as object) as void ' TODO: this whole logic is not good. ' The view should have placeholder, and child nodes get replaced as ' They get ready. + if output = invalid + StartFetchTask() + return + end if + m.sortedContent.Push(output.result) if output.result.rootChildren.Count() > 0