Skip to content

Commit

Permalink
fix(data-warehouse): include views props in insights (#24795)
Browse files Browse the repository at this point in the history
  • Loading branch information
EDsCODE authored Sep 4, 2024
1 parent 73fce74 commit 989dbd9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ export const databaseTableListLogic = kea<databaseTableListLogicType>([
}

return Object.values(database.tables)
.filter((n): n is DatabaseSchemaDataWarehouseTable => n.type === 'data_warehouse')
.filter(
(n): n is DatabaseSchemaDataWarehouseTable => n.type === 'data_warehouse' || n.type == 'view'
)
.reduce((acc, cur) => {
acc[cur.name] = database.tables[cur.name] as DatabaseSchemaDataWarehouseTable
return acc
Expand Down

0 comments on commit 989dbd9

Please sign in to comment.