:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import { DashboardTileBasicType } from '~/types'
/**
* Soft-deleted tiles do not count, because the backend does not count them either. Session responses omit
* the deprecated insight `dashboards` field, so this is the list of dashboards an insight sits on.
*/
export function liveDashboardIds(tiles: DashboardTileBasicType[] | null | undefined): number[] {
return (tiles || []).filter((tile) => !tile.deleted).map((tile) => tile.dashboard_id)
}