mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(site): remove mock data from port forward button (#9177)
This commit is contained in:
@@ -17,7 +17,6 @@ import { getAgentListeningPorts } from "api/api"
|
||||
import { WorkspaceAgentListeningPort } from "api/typesGenerated"
|
||||
import CircularProgress from "@mui/material/CircularProgress"
|
||||
import { portForwardURL } from "utils/portForward"
|
||||
import { MockListeningPortsResponse } from "testHelpers/entities"
|
||||
import OpenInNewOutlined from "@mui/icons-material/OpenInNewOutlined"
|
||||
|
||||
export interface PortForwardButtonProps {
|
||||
@@ -36,7 +35,6 @@ export const PortForwardButton: React.FC<PortForwardButtonProps> = (props) => {
|
||||
const { data: listeningPorts } = useQuery({
|
||||
queryKey: ["portForward", props.agentId],
|
||||
queryFn: () => getAgentListeningPorts(props.agentId),
|
||||
initialData: MockListeningPortsResponse,
|
||||
})
|
||||
|
||||
const onClose = () => {
|
||||
|
||||
Reference in New Issue
Block a user