fix: inconsistency with the select all functionality in problem capa type filter (#1294)

This commit is contained in:
Chris Chávez
2024-09-18 13:35:56 -05:00
committed by GitHub
parent fc4b700624
commit 053a9b1074

View File

@@ -53,6 +53,7 @@ const ProblemFilterItem = ({ count, handleCheckboxChange } : ProblemFilterItemPr
const handleCheckBoxChangeOnProblem = React.useCallback((e) => {
handleCheckboxChange(e);
setIsProblemIndeterminate(false);
if (e.target.checked) {
setProblemTypesFilter(Object.keys(problemTypes));
} else {