We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fec374 commit 6e3c8b8Copy full SHA for 6e3c8b8
client/src/Pages/Infrastructure/Create/index.jsx
@@ -262,8 +262,11 @@ const CreateInfrastructureMonitor = () => {
262
[name]: value,
263
});
264
265
- const adjustedValue =
266
- name === "url" ? (value ? `http${https ? "s" : ""}://${value}` : value) : value;
+ let adjustedValue = value;
+
267
+ if (name === "url" && value) {
268
+ adjustedValue = `http${https ? "s" : ""}://${value}`;
269
+ }
270
271
const { error } = infrastructureMonitorValidation.validate(
272
{ [name]: adjustedValue },
0 commit comments