Skip to content

Commit 37c241b

Browse files
committedAug 19, 2024
Fix viewport component attrs
1 parent dedc787 commit 37c241b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎lib/plexus_web/components/core_components.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,8 @@ defmodule PlexusWeb.CoreComponents do
488488
<tbody
489489
id={@id}
490490
phx-update={match?(%Phoenix.LiveView.LiveStream{}, @rows) && "stream"}
491-
phx-viewport-top={match?(%Phoenix.LiveView.LiveStream{}, @rows) && @viewport_top}
492-
phx-viewport-bottom={match?(%Phoenix.LiveView.LiveStream{}, @rows) && @viewport_bottom}
491+
phx-viewport-top={match?(%Phoenix.LiveView.LiveStream{}, @rows) && assigns[:viewport_top]}
492+
phx-viewport-bottom={match?(%Phoenix.LiveView.LiveStream{}, @rows) && assigns[:viewport_bottom]}
493493
phx-page-loading
494494
class="relative divide-y divide-zinc-100 border-t border-zinc-200 text-sm leading-6 text-zinc-700"
495495
>

0 commit comments

Comments
 (0)