use Navigation ptr instead of fat copy

This commit is contained in:
Muki Kiboigo committed 2025-12-09 17:11:04 -08:00
1 parent 395f93240d
commit 6534dc4c4f
1 file changed
+1 -1
@@ -52,7 +52,7 @@ pub fn id(self: *const NavigationHistoryEntry) []const u8 {
}
pub fn index(self: *const NavigationHistoryEntry, page: *Page) i32 {
const navigation = page._session.navigation;
const navigation = &page._session.navigation;
for (navigation._entries.items, 0..) |entry, i| {
if (std.mem.eql(u8, entry._id, self._id)) {