mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
13 lines
250 B
TypeScript
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);
|
|
}
|