╭ changed ───────────╮ │src/ui/Repo/Undo.zig│ ╰────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │456 scroll.getFocus().mode = .mouse; │ │457 try box.children.put(allocator, scroll.getFocus().id, .{ .widget = .{ .scroll = scroll }, .rect = null, .min_size = .{ .width = detail_min_width, .height = null } });│ │458 } │ │459 - box.getFocus().child_id = box.children.keys()[0]; │ │459 + box.getFocus().child_id = box.children.keys()[if (data.items.len > 0) 1 else 0]; │ │460 try outer.children.put(allocator, box.getFocus().id, .{ .widget = .{ .box = box }, .rect = null, .min_size = null }); │ │461 outer.getFocus().child_id = outer.children.keys()[content_index]; │ │462 return .{ .box = outer, .data = data, .session = session }; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯