1
0
mirror of https://github.com/TeamPiped/Piped.git synced 2024-12-13 22:00:28 +05:30

Fix NPE error when no sponsorblock preferences are enabled.

This commit is contained in:
Kavin 2023-12-27 21:08:34 +00:00
parent 5fe9942193
commit b243782f65
No known key found for this signature in database
GPG Key ID: 6E4598CA5C92C41F

View File

@ -457,7 +457,7 @@ export default {
}); });
sponsors?.segments?.forEach(segment => { sponsors?.segments?.forEach(segment => {
const option = skipOptions[segment.category]; const option = skipOptions?.[segment.category];
segment.autoskip = option === undefined || option === "auto"; segment.autoskip = option === undefined || option === "auto";
}); });