diff --git a/frontend/src/queries/nodes/DataVisualization/dataVisualizationLogic.ts b/frontend/src/queries/nodes/DataVisualization/dataVisualizationLogic.ts index d7efa47f6f9a6..fcf6b70df4932 100644 --- a/frontend/src/queries/nodes/DataVisualization/dataVisualizationLogic.ts +++ b/frontend/src/queries/nodes/DataVisualization/dataVisualizationLogic.ts @@ -79,11 +79,11 @@ export const dataVisualizationLogic = kea([ return [] } - const columns: string[] = response['columns'] - const types: string[][] = response['types'] + const columns: string[] = response['columns'] ?? [] + const types: string[][] = response['types'] ?? [] return columns.map((column, index) => { - const type = types[index][1] + const type = types[index]?.[1] return { name: column, type,