diff --git a/client/src/Features/PageSpeedMonitor/pageSpeedMonitorSlice.js b/client/src/Features/PageSpeedMonitor/pageSpeedMonitorSlice.js
index 11cbcb36c..3ed2da13f 100644
--- a/client/src/Features/PageSpeedMonitor/pageSpeedMonitorSlice.js
+++ b/client/src/Features/PageSpeedMonitor/pageSpeedMonitorSlice.js
@@ -101,7 +101,7 @@ export const updatePageSpeed = createAsyncThunk(
name: monitor.name,
description: monitor.description,
interval: monitor.interval,
- // notifications: monitor.notifications,
+ notifications: monitor.notifications,
};
const res = await networkService.updateMonitor({
monitorId: monitor._id,
diff --git a/client/src/Pages/PageSpeed/Monitors/index.jsx b/client/src/Pages/PageSpeed/Monitors/index.jsx
index f10ba73d0..9963e429c 100644
--- a/client/src/Pages/PageSpeed/Monitors/index.jsx
+++ b/client/src/Pages/PageSpeed/Monitors/index.jsx
@@ -62,7 +62,7 @@ const PageSpeed = () => {
{
- notification.monitorId = editedMonitor._id;
- await this.db.createNotification(notification);
- })
+ notifications.map(async (notification) => {
+ notification.monitorId = editedMonitor._id;
+ await this.db.createNotification(notification);
+ })
);
// Delete the old job(editedMonitor has the same ID as the old monitor)