fix table when empty rows

This commit is contained in:
Ruben Fiszel
2023-09-22 15:58:41 +02:00
parent 3017307fcc
commit 1e629b233c
2 changed files with 1 additions and 2 deletions
@@ -165,7 +165,7 @@
}
const headers = Array.from(
new Set(result.flatMap((row) => (typeof row == 'object' ? Object.keys(row) : [])))
new Set(result.flatMap((row) => (typeof row == 'object' ? Object.keys(row ?? {}) : [])))
)
$options = {
@@ -119,7 +119,6 @@
appStore.subscribe(loadTheme)
async function loadTheme(currentAppStore: App) {
console.log(currentAppStore)
if (!currentAppStore.theme) {
return
}