Skip to content

Commit

Permalink
fix: wss slug.join(/) -> websocketId
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed May 28, 2024
1 parent 946e9f7 commit 0ec4a99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ui/app/src/api-page/web-socket/WebSocket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ const WebhookContent: FC<WebSocket.Props> = ({ websocket, isLastInApi, api, type
<PlaygroundButton
state={{
type: "websocket",
webSocketId: websocket.slug.join("/"),
webSocketId: websocket.id,
api,
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const PlaygroundEndpointSelectorContent = forwardRef<HTMLDivElement, Play
)}
<ul className="relative z-0 list-none">
{endpoints.map((endpointItem) => {
const active = endpointItem.slug.join("/") === selectedEndpoint?.slug.join("/");
const active = endpointItem.id === selectedEndpoint?.id;
const text = renderTextWithHighlight(endpointItem.title, filterValue);
if (endpointItem.apiType === "endpoint") {
return (
Expand Down

0 comments on commit 0ec4a99

Please sign in to comment.