fix: add missing onUpdateTrack prop to Track component
Fixed "onUpdateTrack is not defined" error by: - Added onUpdateTrack to TrackProps interface - Added onUpdateTrack to Track component destructuring - Passed onUpdateTrack prop from TrackList to Track This prop is required for: - Track height resizing functionality - Automation lane updates - General track property updates 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,7 @@ export interface TrackProps {
|
||||
onPanChange: (pan: number) => void;
|
||||
onRemove: () => void;
|
||||
onNameChange: (name: string) => void;
|
||||
onUpdateTrack: (trackId: string, updates: Partial<TrackType>) => void;
|
||||
onSeek?: (time: number) => void;
|
||||
onLoadAudio?: (buffer: AudioBuffer) => void;
|
||||
onToggleEffect?: (effectId: string) => void;
|
||||
@@ -57,6 +58,7 @@ export function Track({
|
||||
onPanChange,
|
||||
onRemove,
|
||||
onNameChange,
|
||||
onUpdateTrack,
|
||||
onSeek,
|
||||
onLoadAudio,
|
||||
onToggleEffect,
|
||||
|
||||
Reference in New Issue
Block a user