utils.tsx 256 B

123456789101112
  1. import toArray from 'sentry/utils/array/toArray';
  2. /**
  3. * Noramlize a team slug from the query
  4. */
  5. export function getTeamParams(team?: string | string[]): string[] {
  6. if (team === '' || team === undefined) {
  7. return [];
  8. }
  9. return toArray(team);
  10. }