fix(favorites): add type=button to favorite toggle and remove debug logs

This commit is contained in:
vicrodh committed 2026-01-28 01:56:23 -06:00
1 parent c87788f0f8
commit e025882a9f
1 file changed
+1 -6
+1 -6
View File
@@ -103,13 +103,8 @@
// Handle favorite toggle internally
async function handleToggleFavorite(e: MouseEvent) {
e.stopPropagation();
console.log('[TrackRow] handleToggleFavorite called, trackId:', trackId);
if (trackId !== undefined) {
console.log('[TrackRow] Calling toggleTrackFavorite for track:', trackId);
const result = await toggleTrackFavorite(trackId);
console.log('[TrackRow] toggleTrackFavorite result:', result);
} else {
console.warn('[TrackRow] trackId is undefined, cannot toggle favorite');
await toggleTrackFavorite(trackId);
}
}