Files
2024-02-15 17:01:50 +00:00

13 lines
250 B
TypeScript

import toArray from 'sentry/utils/toArray';
/**
* Noramlize a team slug from the query
*/
export function getTeamParams(team?: string | string[]): string[] {
if (team === '' || team === undefined) {
return [];
}
return toArray(team);
}