Repository navigation
修复渲染首页每日新番海报(Bangumi)接口返回images: null的空指针导致白屏报错异常 - #122
Merged
Merged
Conversation
修复海报(anime.images.large)空指针崩溃:将新番列表渲染中的 anime.images.large 等 5 处属性访问全部改为可选链写法(anime.images?.large || anime.images?.common || ... || ''),并对 bangumiCalendarData 增加了数组校验与 .filter(Boolean) 空项过滤,彻底解决番剧缺失封面图时触发 TypeError: Cannot read properties of null (reading 'large') 导致整页白屏的问题。
👷 Deploy request for stardm pending review.Visit the deploys page to approve it
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复海报(anime.images.large)空指针崩溃:将新番列表渲染中的 anime.images.large 等 5 处属性访问全部改为可选链写法(anime.images?.large || anime.images?.common || ... || ''),并对 bangumiCalendarData 增加了数组校验与 .filter(Boolean) 空项过滤,彻底解决番剧缺失封面图时触发 TypeError: Cannot read properties of null (reading 'large') 导致整页白屏的问题。
