Skip to content

Commit

Permalink
Update lib/kino/data_table.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko authored Oct 8, 2024
1 parent ce31a7d commit 9db44e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/kino/data_table.ex
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ defmodule Kino.DataTable do
{data_rows, data_columns, count, name, sorting_enabled, inspected, formatter, num_rows}
) do
features = Kino.Utils.truthy_keys(pagination: true, sorting: sorting_enabled)
info = %{name: name, features: features, num_rows: num_rows}
info = %{name: name, features: features}
info = if(num_rows, do: Map.put(info, :num_rows, num_rows), else: info)

{count, slicing_fun, slicing_cache} = init_slicing(data_rows, count)

Expand Down

0 comments on commit 9db44e2

Please sign in to comment.