fix: vfs list children not handling empty rows

This commit is contained in:
2025-12-18 00:47:41 +00:00
parent f2cce889af
commit 1024f36a9f
2 changed files with 15 additions and 3 deletions

View File

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