Skip to content

Commit

Permalink
fix capture/playback name replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
sadguitarius committed Oct 18, 2024
1 parent 3d9cb9c commit 6381832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/editor/port.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const EditorPort: FunctionComponent<PortProps> = memo(function WrappedPort({
id={ port.id }
position={ handlePositionByPortDirection[port.direction] }
data-c74-type={ port.type }
data-c74-name={ (alias || port.id).replace(/\((capture|playback)_[0-9+]\)/, "") }
data-c74-name={ (alias || port.id.replace(/\((capture|playback)_[0-9+]\)/, "")) }
type={ handleTypeByPortDirection[port.direction] }
style={{ top: `${offset}%` }}
/>
Expand Down

0 comments on commit 6381832

Please sign in to comment.