Skip to content

Commit 6d8c02d

Browse files
committed
fix
1 parent cb12988 commit 6d8c02d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/TableView.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ function showtable(t; rows=1:100, colopts=Dict(), kwargs...)
1818

1919
subt = IndexedTable(ks, vs)
2020

21-
columns = [merge(Dict(:data=>n), get(colopts, n, Dict())) for n in vcat(fieldnames(eltype(ks)), fieldnames(eltype(t)))]
21+
headers = [fieldnames(eltype(ks)); fieldnames(eltype(t));]
22+
cols = [merge(Dict(:data=>n), get(colopts, n, Dict())) for n in fieldnames(columns(subt))]
2223

23-
headers = [fieldnames(eltype(keys(t))); fieldnames(eltype(t));]
2424
options = Dict(
2525
:data => IndexedTables.rows(subt),
2626
:colHeaders => headers,
@@ -29,7 +29,7 @@ function showtable(t; rows=1:100, colopts=Dict(), kwargs...)
2929
:modifyRowHeight => @js(h -> h > 60 ? 50 : h),
3030
:manualColumnResize => true,
3131
:manualRowResize => true,
32-
:columns => columns,
32+
:columns => cols,
3333
:width => 800,
3434
:height => 400,
3535
)

0 commit comments

Comments
 (0)