Make output ids unique across evaluations (#454)

This commit is contained in:
Jonatan Kłosko 2021-07-21 15:45:00 +02:00 committed by GitHub
parent ecd78041d9
commit 31991a12f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -408,7 +408,7 @@ defmodule LivebookWeb.SessionLive.CellComponent do
<div class="flex flex-col rounded-lg border border-gray-200 divide-y divide-gray-200">
<%= for {output, index} <- @cell_view.outputs |> Enum.reverse() |> Enum.with_index(), output != :ignored do %>
<div class="p-4 max-w-full overflow-y-auto tiny-scrollbar">
<%= render_output(output, %{id: "cell-#{@cell_view.id}-output#{index}", socket: @socket}) %>
<%= render_output(output, %{id: "cell-#{@cell_view.id}-evaluation#{@cell_view.number_of_evaluations}-output#{index}", socket: @socket}) %>
</div>
<% end %>
</div>