Skip to content

Commit

Permalink
fix typeerror
Browse files Browse the repository at this point in the history
  • Loading branch information
imzlh committed Sep 17, 2024
1 parent a3ace96 commit cdc460f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ export namespace FS{
else if(current.child![index].type == 'file')
target.child[target.child.findIndex(item => item.name == paths[paths.length - 1])] = current.child![index];
else
merge(current.child![index], target.child.find(item => item.name == paths[paths.length - 1]) as vDir);
merge(current.child![index] as vDir, target.child.find(item => item.name == paths[paths.length - 1]) as vDir);
}else{
current.child![index].type == 'file'
? target.child.push(current.child![index])
Expand Down

0 comments on commit cdc460f

Please sign in to comment.