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: {