Skip to content

Commit

Permalink
remove start adornment from non-http type monitors
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhollid committed Dec 3, 2024
1 parent 9babbfc commit 2e08c88
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Client/src/Pages/Monitors/CreateMonitor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ const CreateMonitor = () => {
{ _id: 4, name: "4 minutes" },
{ _id: 5, name: "5 minutes" },
];

console.log(monitor.type);
return (
<Box className="create-monitor">
<Breadcrumbs
Expand Down Expand Up @@ -262,7 +262,9 @@ const CreateMonitor = () => {
<TextInput
type={monitor.type === "http" ? "url" : "text"}
id="monitor-url"
startAdornment={<HttpAdornment https={https} />}
startAdornment={
monitor.type === "http" ? <HttpAdornment https={https} /> : null
}
label={monitorTypeMaps[monitor.type].label || "URL to monitor"}
https={https}
placeholder={monitorTypeMaps[monitor.type].placeholder || ""}
Expand Down

0 comments on commit 2e08c88

Please sign in to comment.