fix(favorites): add type=button to favorite toggle and remove debug logs
This commit is contained in:
1 parent
c87788f0f8
commit
e025882a9f
1 file changed
+1
-6
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user