mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
play.html: no header in transposed table
This commit is contained in:
parent
277afd0c48
commit
ea4e9db3da
@ -620,18 +620,6 @@
|
||||
|
||||
function renderTableTranspose(response)
|
||||
{
|
||||
let thead = document.createElement('thead');
|
||||
let appendHeader = (text) => {
|
||||
let th = document.createElement('th');
|
||||
const name = document.createTextNode(text);
|
||||
th.appendChild(name);
|
||||
thead.appendChild(th);
|
||||
};
|
||||
appendHeader('column')
|
||||
for (let row_idx in response.data) {
|
||||
appendHeader(row_idx)
|
||||
}
|
||||
|
||||
let tbody = document.createElement('tbody');
|
||||
for (let col_idx in response.meta) {
|
||||
let tr = document.createElement('tr');
|
||||
@ -656,7 +644,6 @@
|
||||
}
|
||||
let table = document.getElementById('data-table');
|
||||
table.appendChild(tbody);
|
||||
table.appendChild(thead);
|
||||
}
|
||||
|
||||
function renderTable(response)
|
||||
|
Loading…
Reference in New Issue
Block a user