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:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user