From b7b6724ce5adb8c13c7297513d1046f6fa9a1d64 Mon Sep 17 00:00:00 2001 From: Vishnu Sreekumaran Nair <200557136@student.georgianc.on.ca> Date: Thu, 1 May 2025 13:46:10 -0400 Subject: [PATCH] include port in update payload for port monitors --- client/src/Utils/NetworkService.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/Utils/NetworkService.js b/client/src/Utils/NetworkService.js index 7c4ffba9f..d7d9d58a6 100644 --- a/client/src/Utils/NetworkService.js +++ b/client/src/Utils/NetworkService.js @@ -266,6 +266,7 @@ class NetworkService { matchMethod: monitor.matchMethod, expectedValue: monitor.expectedValue, jsonPath: monitor.jsonPath, + ...(monitor.type === "port" && { port: monitor.port }), }; return this.axiosInstance.put(`/monitors/${monitorId}`, payload, { headers: {