Fix categories not being able to be disabled

This commit is contained in:
Ajay 2022-07-19 23:37:42 -04:00
parent 0f9122aa1c
commit af86534992

View file

@ -112,7 +112,9 @@ class CategorySkipOptionsComponent extends React.Component<CategorySkipOptionsPr
let option: CategorySkipOption;
switch (event.target.value) {
case "disable":
case "disable":
Config.config.categorySelections = Config.config.categorySelections.filter(
categorySelection => categorySelection.name !== this.props.category);
return;
case "showOverlay":
option = CategorySkipOption.ShowOverlay;