mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-08-05 18:24:03 +00:00
Fix NPE error when no sponsorblock preferences are enabled.
This commit is contained in:
@@ -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";
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user