utils.tsx 266 B

123456
  1. import type {BreadcrumbLevelType, Crumb} from 'sentry/types/breadcrumbs';
  2. export const getLogLevels = (breadcrumbs: Crumb[], selected: BreadcrumbLevelType[]) =>
  3. Array.from(
  4. new Set(breadcrumbs.map(breadcrumb => breadcrumb.level).concat(selected))
  5. ).sort();