mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-11-04 13:46:13 +08:00 
			
		
		
		
	Fix #2969
This commit is contained in:
		@@ -944,6 +944,14 @@ message HealthCheckResponse {
 | 
				
			|||||||
            } else if (this.isEdit || this.isClone) {
 | 
					            } else if (this.isEdit || this.isClone) {
 | 
				
			||||||
                this.$root.getSocket().emit("getMonitor", this.$route.params.id, (res) => {
 | 
					                this.$root.getSocket().emit("getMonitor", this.$route.params.id, (res) => {
 | 
				
			||||||
                    if (res.ok) {
 | 
					                    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;
 | 
					                        this.monitor = res.monitor;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        if (this.isClone) {
 | 
					                        if (this.isClone) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user