kopia lustrzana https://github.com/simonw/datasette
prf: add JS handling for situations where tables have no rows
rodzic
06b4829035
commit
cf504fe492
|
@ -93,6 +93,11 @@ const datasetteManager = {
|
|||
renderAboveTablePanel: () => {
|
||||
|
||||
const aboveTablePanel = document.querySelector(DOM_SELECTORS.aboveTablePanel);
|
||||
|
||||
if (!aboveTablePanel) {
|
||||
console.warn('This page does not have a table, the renderAboveTablePanel cannot be used.');
|
||||
}
|
||||
|
||||
let aboveTablePanelWrapper = aboveTablePanel.querySelector('.panels');
|
||||
|
||||
// First render: create wrappers. Otherwise, reuse previous.
|
||||
|
|
Ładowanie…
Reference in New Issue