Skip to content

Commit 3cadb37

Browse files
AmirMohammad CheraghaliAmirMohammad Cheraghali
authored andcommitted
fix(studio): Resolve TS2554 error by passing multi-select argument to toggleSegmentSelection
- Updated onClick handler in Segment List to support Shift/Cmd click for multi-selection - Fixed missing second argument in toggleSegmentSelection call
1 parent a14ab7d commit 3cadb37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/StudioLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ export const StudioLayout: React.FC<StudioLayoutProps> = ({ recorder, onExit, ex
528528
return (
529529
<div
530530
key={seg.id}
531-
onClick={() => toggleSegmentSelection(seg.id)}
531+
onClick={(e) => toggleSegmentSelection(seg.id, e.shiftKey || e.metaKey || e.ctrlKey)}
532532
className={`p-2 rounded flex items-center gap-2 text-xs border transition-colors cursor-pointer ${isSelected
533533
? 'bg-blue-600/20 border-blue-500/50 text-white'
534534
: 'bg-neutral-800 border-white/5 text-white/70 hover:bg-white/5'

0 commit comments

Comments
 (0)