fix: handle symlink type in TreeNode creation
This commit is contained in:
parent
4984303f90
commit
f80ed5e8aa
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ export class VFSTreeUtils {
|
||||||
const node: TreeNode = {
|
const node: TreeNode = {
|
||||||
name: entity.metadata.name,
|
name: entity.metadata.name,
|
||||||
path: entity.metadata.path,
|
path: entity.metadata.path,
|
||||||
type: entity.metadata.vfsType,
|
type: entity.metadata.vfsType === 'directory' ? 'directory' : 'file',
|
||||||
entityId: entity.id,
|
entityId: entity.id,
|
||||||
metadata: entity.metadata
|
metadata: entity.metadata
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue