destructure monitors to add all properties

This commit is contained in:
Alex Holliday
2025-02-07 14:44:56 -08:00
parent 45cd6320d8
commit 27e4bd006c
+1 -4
View File
@@ -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,