From 2e08c8831cd20f3add4f3333f6418e56d9ab5077 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Tue, 3 Dec 2024 12:50:03 +0800 Subject: [PATCH] remove start adornment from non-http type monitors --- Client/src/Pages/Monitors/CreateMonitor/index.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Client/src/Pages/Monitors/CreateMonitor/index.jsx b/Client/src/Pages/Monitors/CreateMonitor/index.jsx index 6a794e464..f29d3b8d8 100644 --- a/Client/src/Pages/Monitors/CreateMonitor/index.jsx +++ b/Client/src/Pages/Monitors/CreateMonitor/index.jsx @@ -214,7 +214,7 @@ const CreateMonitor = () => { { _id: 4, name: "4 minutes" }, { _id: 5, name: "5 minutes" }, ]; - + console.log(monitor.type); return ( { } + startAdornment={ + monitor.type === "http" ? : null + } label={monitorTypeMaps[monitor.type].label || "URL to monitor"} https={https} placeholder={monitorTypeMaps[monitor.type].placeholder || ""}