diff --git a/data/plans.json b/data/plans.json index a812161..9844288 100644 --- a/data/plans.json +++ b/data/plans.json @@ -5,12 +5,12 @@ "description": "Welcome! This is a sample practice plan — edit it, or create your own from the Plans tab.", "items": [ { - "trackId": "demo-song", + "trackChoices": ["demo-song"], "tasks": [{ "type": "playWithTrack", "count": 2 }], "dice": false }, { - "trackId": "a-major-scale", + "trackChoices": ["a-major-scale"], "tasks": [{ "type": "playWithoutTrack", "count": 1 }], "dice": true } diff --git a/src/app/PracticeTasksList.tsx b/src/app/PracticeTasksList.tsx index 90195c8..3ec291e 100644 --- a/src/app/PracticeTasksList.tsx +++ b/src/app/PracticeTasksList.tsx @@ -3,7 +3,7 @@ import DiceRoller from "./DiceRoller"; import TaskList, { TaskTypeDef } from "./TaskList"; import TrackNote from "./TrackNote"; -import type { PracticeItem, Track } from "./plans"; +import { primaryTrackId, type PracticeItem, type Track } from "./plans"; import type { Student } from "./students"; interface Props { @@ -19,11 +19,12 @@ export default function PracticeTasksList({ items, tracks, taskTypes, doneTasks, return (