mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-12 14:37:23 +03:00
Fix categories not being able to be disabled
This commit is contained in:
@@ -112,7 +112,9 @@ class CategorySkipOptionsComponent extends React.Component<CategorySkipOptionsPr
|
|||||||
let option: CategorySkipOption;
|
let option: CategorySkipOption;
|
||||||
|
|
||||||
switch (event.target.value) {
|
switch (event.target.value) {
|
||||||
case "disable":
|
case "disable":
|
||||||
|
Config.config.categorySelections = Config.config.categorySelections.filter(
|
||||||
|
categorySelection => categorySelection.name !== this.props.category);
|
||||||
return;
|
return;
|
||||||
case "showOverlay":
|
case "showOverlay":
|
||||||
option = CategorySkipOption.ShowOverlay;
|
option = CategorySkipOption.ShowOverlay;
|
||||||
|
|||||||
Reference in New Issue
Block a user