Fix handling of unset preferences

This commit is contained in:
novenary
2023-02-06 19:18:04 +02:00
parent 45a1e4981e
commit f03e323f90
2 changed files with 3 additions and 3 deletions

View File

@@ -372,7 +372,7 @@ export default {
"sponsor,interaction,selfpromo,music_offtopic",
).split(",");
const skipOptions = this.getPreferenceJSON("skipOptions");
if (skipOptions !== null) {
if (skipOptions !== undefined) {
selectedSkip = Object.keys(skipOptions).filter(
k => skipOptions[k] !== undefined && skipOptions[k] !== "no",
);