From 70572af1affd1cc7e6d203560d73a8b9a0479334 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Fri, 24 Mar 2023 18:39:52 +0800 Subject: [PATCH] Fix #2969 --- src/pages/EditMonitor.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index 60af4933f..24b35ca20 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -944,6 +944,14 @@ message HealthCheckResponse { } else if (this.isEdit || this.isClone) { this.$root.getSocket().emit("getMonitor", this.$route.params.id, (res) => { if (res.ok) { + + if (this.isClone) { + // Reset push token for cloned monitors + if (res.monitor.type === "push") { + res.monitor.pushToken = undefined; + } + } + this.monitor = res.monitor; if (this.isClone) {