mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Fix NPE error when no sponsorblock preferences are enabled.
This commit is contained in:
parent
5fe9942193
commit
b243782f65
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue