fix: create deep copy of file passed into tree

This commit is contained in:
Ben Schlegel 2023-09-16 19:45:21 +02:00
parent 3d8c470c0d
commit fea352849c
No known key found for this signature in database
GPG Key ID: 8BDB8891C1575E22

View File

@ -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
}