mirror of
https://github.com/get-drexa/drive.git
synced 2026-02-02 14:41:18 +00:00
fix: vfs list children not handling empty rows
This commit is contained in:
@@ -254,6 +254,10 @@ func (vfs *VirtualFS) ListChildren(ctx context.Context, db bun.IDB, node *Node,
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
if len(nodes) == 0 {
|
||||
return make([]*Node, 0), nil, nil
|
||||
}
|
||||
|
||||
c := &ListChildrenCursor{
|
||||
Node: nodes[len(nodes)-1],
|
||||
OrderBy: opts.OrderBy,
|
||||
|
||||
Reference in New Issue
Block a user