fix(frontend): default ping/traceroute target to 8.8.8.8
The target input showed "8.8.8.8" as placeholder text but the actual value was empty. Clicking Ping/Traceroute silently returned because the empty target guard fired. Users saw the placeholder and assumed the tool was broken. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -34,7 +34,7 @@ interface PingStats {
|
||||
}
|
||||
|
||||
export function PingTool({ tenantId, deviceId }: ConfigPanelProps) {
|
||||
const [target, setTarget] = useState('')
|
||||
const [target, setTarget] = useState('8.8.8.8')
|
||||
const [count, setCount] = useState('4')
|
||||
const [size, setSize] = useState('64')
|
||||
const [srcAddress, setSrcAddress] = useState('')
|
||||
|
||||
@@ -28,7 +28,7 @@ interface HopResult {
|
||||
}
|
||||
|
||||
export function TracerouteTool({ tenantId, deviceId }: ConfigPanelProps) {
|
||||
const [target, setTarget] = useState('')
|
||||
const [target, setTarget] = useState('8.8.8.8')
|
||||
const [maxHops, setMaxHops] = useState('30')
|
||||
const [timeout, setTimeout] = useState('1000')
|
||||
const [protocol, setProtocol] = useState('icmp')
|
||||
|
||||
Reference in New Issue
Block a user