Enforce string values in dynamic tables (#363)

* Enforce string values in dynamic tables

* Explicitly convert values to string
This commit is contained in:
Jonatan Kłosko 2021-06-17 18:49:58 +02:00 committed by GitHub
parent 494a5d6a1e
commit 137deeb12f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,7 @@ defmodule LivebookWeb.Output.TableDynamicLive do
<tr class="border-b border-gray-200 last:border-b-0 hover:bg-gray-50">
<%= for column <- @columns do %>
<td class="py-3 px-6">
<%= row.fields[column.key] %>
<%= to_string(row.fields[column.key]) %>
</td>
<% end %>
</tr>