From 638183242539fe4486aecb864ce283c3594cdc93 Mon Sep 17 00:00:00 2001 From: sadguitarius Date: Fri, 18 Oct 2024 11:08:44 -0700 Subject: [PATCH] fix capture/playback name replacement --- src/components/editor/port.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/editor/port.tsx b/src/components/editor/port.tsx index dea2ede..c3c8775 100644 --- a/src/components/editor/port.tsx +++ b/src/components/editor/port.tsx @@ -29,7 +29,7 @@ const EditorPort: FunctionComponent = 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}%` }} />