fix: create deep copy of file passed into tree
This commit is contained in:
		
							parent
							
								
									3d8c470c0d
								
							
						
					
					
						commit
						fea352849c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -32,7 +32,7 @@ export class FileNode {
 | 
			
		|||
  constructor(name: string, file?: QuartzPluginData, depth?: number) {
 | 
			
		||||
    this.children = []
 | 
			
		||||
    this.name = name
 | 
			
		||||
    this.file = file ?? null
 | 
			
		||||
    this.file = file ? structuredClone(file) : null
 | 
			
		||||
    this.depth = depth ?? 0
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue