Skip to content

Commit

Permalink
fix(bi): Cannot read properties of null (#20292)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra authored Feb 13, 2024
1 parent 2125e8b commit 17719fe
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ export const dataVisualizationLogic = kea<dataVisualizationLogicType>([
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,
Expand Down

0 comments on commit 17719fe

Please sign in to comment.