fix: convert track name to string in TrackHeader component

Fixed the React error by ensuring track.name is always converted to string in TrackHeader.tsx line 105 where it's rendered.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-17 22:33:33 +01:00
parent a2636bb3a9
commit fe519dab01

View File

@@ -100,9 +100,9 @@ export function TrackHeader({
<div <div
onClick={handleNameClick} onClick={handleNameClick}
className="px-2 py-1 text-sm font-medium text-foreground truncate cursor-pointer hover:bg-accent rounded" className="px-2 py-1 text-sm font-medium text-foreground truncate cursor-pointer hover:bg-accent rounded"
title={track.name} title={String(track.name || 'Untitled Track')}
> >
{track.name} {String(track.name || 'Untitled Track')}
</div> </div>
)} )}
</div> </div>