diff --git a/packages/client/src/components/app/DataProvider.svelte b/packages/client/src/components/app/DataProvider.svelte index 0b9cbac4dd..68f6cc6c07 100644 --- a/packages/client/src/components/app/DataProvider.svelte +++ b/packages/client/src/components/app/DataProvider.svelte @@ -188,7 +188,7 @@ // Field sources will be available from context. // Enrich non object elements into object to ensure a valid schema. const data = dataSource?.value || [] - if (data[0] && typeof data[0] !== "object") { + if (Array.isArray(data) && data[0] && typeof data[0] !== "object") { allRows = data.map(value => ({ value })) } else { allRows = data