Another null check fix (#61)
This commit is contained in:
1 parent
8fa06bf05a
commit
3ce2baf683
2 files changed
+8
-2
No files matched your search
+2
-1
@@ -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
|
- Add watched videos to Invidious watch history
|
||||||
|
|
||||||
### Fixed
|
### 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
|
## [0.8.0] - 2023-03-02
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -57,10 +57,15 @@ function StartFetchTask() as void
|
|||||||
StartAsyncTask(GetHomeScreenContent, {
|
StartAsyncTask(GetHomeScreenContent, {
|
||||||
index: currentLoadingIndex,
|
index: currentLoadingIndex,
|
||||||
requestData: m.defaultLayout[currentLoadingIndex]
|
requestData: m.defaultLayout[currentLoadingIndex]
|
||||||
}, function(output as object)
|
}, function(output as object) as void
|
||||||
' TODO: this whole logic is not good.
|
' TODO: this whole logic is not good.
|
||||||
' The view should have placeholder, and child nodes get replaced as
|
' The view should have placeholder, and child nodes get replaced as
|
||||||
' They get ready.
|
' They get ready.
|
||||||
|
if output = invalid
|
||||||
|
StartFetchTask()
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
m.sortedContent.Push(output.result)
|
m.sortedContent.Push(output.result)
|
||||||
|
|
||||||
if output.result.rootChildren.Count() > 0
|
if output.result.rootChildren.Count() > 0
|
||||||
|
|||||||
Reference in new issue
Block a user