Skip to content

Commit 7a700b7

Browse files
committed
Add@impl to return_to
1 parent 3420fc8 commit 7a700b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

demo/lib/demo_web/live/short_link_live.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defmodule DemoWeb.ShortLinkLive do
2222
def can?(_assigns, :delete, _item), do: false
2323
def can?(_assigns, _action, _item), do: true
2424

25+
@impl Backpex.LiveResource
2526
def return_to(_socket, _assigns, :edit, _form_action, _item) do
2627
# since the primary key might be updated, we go to the index page
2728
~p"/admin/short-links"

0 commit comments

Comments
 (0)