mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-10-31 19:39:20 +08:00 
			
		
		
		
	Merge pull request #3270 from chakflying/fix/clone-group-monitor-fields
Fix: Remove extra fields on clone
This commit is contained in:
		| @@ -823,7 +823,6 @@ message HealthCheckResponse { | ||||
|         // Only return groups which arent't itself and one of its decendants | ||||
|         sortedMonitorList() { | ||||
|             let result = Object.values(this.$root.monitorList); | ||||
|             console.log(this.monitor.childrenIDs); | ||||
|  | ||||
|             // Only groups, not itself, not a decendant | ||||
|             result = result.filter( | ||||
| @@ -1041,6 +1040,11 @@ message HealthCheckResponse { | ||||
|                             this.monitor.id = undefined; // Remove id when cloning as we want a new id | ||||
|                             this.monitor.includeSensitiveData = undefined; | ||||
|                             this.monitor.maintenance = undefined; | ||||
|                             // group monitor fields | ||||
|                             this.monitor.childrenIDs = undefined; | ||||
|                             this.monitor.forceInactive = undefined; | ||||
|                             this.monitor.pathName = undefined; | ||||
|  | ||||
|                             this.monitor.name = this.$t("cloneOf", [ this.monitor.name ]); | ||||
|                             this.$refs.tagsManager.newTags = this.monitor.tags.map((monitorTag) => { | ||||
|                                 return { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user