mirror of
https://github.com/perfect-panel/ppanel-web.git
synced 2026-02-06 03:30:25 -05:00
🐛 fix: Filter available protocols to exclude disabled ones in NodeForm
This commit is contained in:
parent
2b0cf9a46d
commit
982d2882e9
@ -128,8 +128,8 @@ export default function NodeForm(props: {
|
||||
const availableProtocols = useMemo(() => {
|
||||
if (!currentServer?.protocols) return [];
|
||||
|
||||
return (currentServer.protocols as Array<{ type: ProtocolName; port?: number }>)
|
||||
.filter((p) => p.type)
|
||||
return currentServer.protocols
|
||||
.filter((p) => p.enable !== false)
|
||||
.map((p) => ({
|
||||
protocol: p.type,
|
||||
port: p.port,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user