mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-30 18:43:17 +00:00
Fix NPE error when no sponsorblock preferences are enabled.
This commit is contained in:
parent
5fe9942193
commit
b243782f65
@ -457,7 +457,7 @@ export default {
|
||||
});
|
||||
|
||||
sponsors?.segments?.forEach(segment => {
|
||||
const option = skipOptions[segment.category];
|
||||
const option = skipOptions?.[segment.category];
|
||||
segment.autoskip = option === undefined || option === "auto";
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user