mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-13 05:40:28 +05:30
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 => {
|
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";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user