Another null check fix (#61)

This commit is contained in:
Brahim Hadriche authored and GitHub committed 2023-04-05 18:35:56 -04:00
1 parent 8fa06bf05a
commit 3ce2baf683
2 files changed
+8 -2

No files matched your search

+2 -1
View File
@@ -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
@@ -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