From 27e4bd006c3e7ac408625bf154d9d305765f2b6b Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Fri, 7 Feb 2025 14:44:56 -0800 Subject: [PATCH] destructure monitors to add all properties --- Client/src/Hooks/useMonitorUtils.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Client/src/Hooks/useMonitorUtils.js b/Client/src/Hooks/useMonitorUtils.js index 1e235af68..fc1966b69 100644 --- a/Client/src/Hooks/useMonitorUtils.js +++ b/Client/src/Hooks/useMonitorUtils.js @@ -22,10 +22,7 @@ const useMonitorUtils = () => { } return { - id: monitor._id, - name: monitor.name, - url: monitor.url, - title: monitor.name, + ...monitor, percentage: uptimePercentage, percentageColor, monitor: monitor,