diff --git a/apps/web/src/components/editor/panels/assets/views/sounds.tsx b/apps/web/src/components/editor/panels/assets/views/sounds.tsx index b1c57c3d..14781ac3 100644 --- a/apps/web/src/components/editor/panels/assets/views/sounds.tsx +++ b/apps/web/src/components/editor/panels/assets/views/sounds.tsx @@ -504,17 +504,15 @@ function AudioItem({ sound, isPlaying, onPlay }: AudioItemProps) { onPlay({ sound }); }; - const handleSaveClick = ({ - stopPropagation, - }: React.MouseEvent) => { - stopPropagation(); + const handleSaveClick = (e: React.MouseEvent) => { + e.stopPropagation(); toggleSavedSound({ soundEffect: sound }); }; - const handleAddToTimeline = async ({ - stopPropagation, - }: React.MouseEvent) => { - stopPropagation(); + const handleAddToTimeline = async ( + e: React.MouseEvent, + ) => { + e.stopPropagation(); await addSoundToTimeline({ sound }); };