mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	only remove if exists
This commit is contained in:
		| @@ -620,7 +620,7 @@ export class QuickReply { | |||||||
|             this.clone.style.visibility = 'hidden'; |             this.clone.style.visibility = 'hidden'; | ||||||
|             const mo = new MutationObserver(muts=>{ |             const mo = new MutationObserver(muts=>{ | ||||||
|                 if (muts.find(it=>[...it.removedNodes].includes(this.editorMessage) || [...it.removedNodes].find(n=>n.contains(this.editorMessage)))) { |                 if (muts.find(it=>[...it.removedNodes].includes(this.editorMessage) || [...it.removedNodes].find(n=>n.contains(this.editorMessage)))) { | ||||||
|                     this.clone.remove(); |                     this.clone?.remove(); | ||||||
|                     this.clone = null; |                     this.clone = null; | ||||||
|                 } |                 } | ||||||
|             }); |             }); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user