Skip to content

Commit c8ace7b

Browse files
fix: explorer aggregated proofs pagination (#1899)
1 parent 83b1750 commit c8ace7b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

explorer/lib/explorer_web/live/pages/agg_proofs/index.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ defmodule ExplorerWeb.AggProofs.Index do
66
@page_size 15
77

88
@impl true
9-
def mount(_, params, socket) do
9+
def mount(params, _, socket) do
1010
current_page = get_current_page(params)
1111

1212
proofs =
@@ -31,7 +31,7 @@ defmodule ExplorerWeb.AggProofs.Index do
3131

3232
@impl true
3333
def handle_event("change_page", %{"page" => page}, socket) do
34-
{:noreply, push_navigate(socket, to: ~p"/batches?page=#{page}")}
34+
{:noreply, push_navigate(socket, to: ~p"/aggregated_proofs?page=#{page}")}
3535
end
3636

3737
defp get_current_page(params) do

explorer/lib/explorer_web/live/pages/agg_proofs/index.html.heex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<% end %>
1010
<div class="flex gap-x-2 items-center justify-center w-full">
1111
<%= if @current_page >= 2 do %>
12-
<.link navigate={~p"/batches?page=#{1}"}>
12+
<.link navigate={~p"/aggregated_proofs?page=#{1}"}>
1313
<.button class="text-muted-foreground group">
1414
First
1515
</.button>
@@ -54,7 +54,7 @@
5454
<span class="sr-only">Next Page</span>
5555
</.button>
5656
</.link>
57-
<.link navigate={~p"/batches?page=#{@last_page}"}>
57+
<.link navigate={~p"/aggregated_proofs?page=#{@last_page}"}>
5858
<.button class="text-muted-foreground group">
5959
Last
6060
</.button>

0 commit comments

Comments
 (0)