diff --git a/Client/src/Pages/InfrastructureMonitors/CreateMonitor/index.jsx b/Client/src/Pages/InfrastructureMonitors/CreateMonitor/index.jsx
index 252455b89..91d1f351f 100644
--- a/Client/src/Pages/InfrastructureMonitors/CreateMonitor/index.jsx
+++ b/Client/src/Pages/InfrastructureMonitors/CreateMonitor/index.jsx
@@ -26,6 +26,7 @@ const CreateInfrastructureMonitor = () => {
const idMap = {
"monitor-url": "url",
"monitor-name": "name",
+ "monitor-secret": "secret",
"monitor-checks-http": "type",
"monitor-checks-ping": "type",
"notify-email-default": "notification-email",
@@ -142,7 +143,7 @@ const CreateInfrastructureMonitor = () => {
const action = await dispatch(createInfrastructureMonitor({ authToken, monitor: form }));
if (action.meta.requestStatus === "fulfilled") {
createToast({ body: "Infrastructure monitor created successfully!" });
- navigate("/infrastructure-monitors");
+ navigate("/infrastructure-monitors/create");
} else {
createToast({ body: "Failed to create monitor." });
}
@@ -204,11 +205,10 @@ const CreateInfrastructureMonitor = () => {
{
+