Skip to content

Commit

Permalink
Update playground/src/components/selectors/data_mode_select.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Dmytro Polityka <[email protected]>
  • Loading branch information
FelixTJDietrich and dmytropolityka authored Jul 26, 2024
1 parent c18f263 commit 61b3b9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playground/src/components/selectors/data_mode_select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export default function DataModeSelect({
onChangeDataMode: (dataMode: DataMode) => void;
}) {
const queryClient = useQueryClient();
const evaluationDataKey = dataMode.startsWith("evaluation-") ? dataMode.slice("evaluation-".length) : undefined;
const evaluationKey = "evaluation-";
const evaluationDataKey = dataMode.startsWith(evaluationKey) ? dataMode.slice(evaluationKey.length) : undefined;

const { data: exerciseData, error: exerciseError, isLoading: isLoadingExercises } = useExercises()
const exerciseTypes = new Map<string, number>();
Expand Down

0 comments on commit 61b3b9d

Please sign in to comment.