We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6741ef9 commit 496fb5cCopy full SHA for 496fb5c
src/sentry/static/sentry/app/utils.tsx
@@ -218,8 +218,8 @@ export const buildTeamId = id => `team:${id}`;
218
/**
219
* Removes the organization / project scope prefix on feature names.
220
*/
221
-export function descopeFeatureName(feature: string): string {
222
- if (typeof feature.match !== 'function') {
+export function descopeFeatureName<T>(feature: T): T | string {
+ if (typeof feature !== 'string') {
223
return feature;
224
}
225
0 commit comments