aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/permission-templates/components/Defaults.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/permission-templates/components/Defaults.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/permission-templates/components/Defaults.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/permission-templates/components/Defaults.tsx b/server/sonar-web/src/main/js/apps/permission-templates/components/Defaults.tsx
index c03733a57a6..9118e8d577f 100644
--- a/server/sonar-web/src/main/js/apps/permission-templates/components/Defaults.tsx
+++ b/server/sonar-web/src/main/js/apps/permission-templates/components/Defaults.tsx
@@ -22,13 +22,11 @@ import * as React from 'react';
import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n';
interface Props {
- organization: T.Organization | undefined;
template: T.PermissionTemplate;
}
-export default function Defaults({ organization, template }: Props) {
- const qualifiersToDisplay =
- organization && !organization.isDefault ? ['TRK'] : template.defaultFor;
+export default function Defaults({ template }: Props) {
+ const qualifiersToDisplay = template.defaultFor;
const qualifiers = sortBy(qualifiersToDisplay)
.map(qualifier => translate('qualifiers', qualifier))