File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
static/app/views/settings/organizationDeveloperSettings Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11import { Component , Fragment } from 'react' ;
2- import find from 'lodash/find' ;
32
43import SelectField from 'sentry/components/forms/fields/selectField' ;
54import FormContext from 'sentry/components/forms/formContext' ;
65import { SENTRY_APP_PERMISSIONS } from 'sentry/constants' ;
76import { t } from 'sentry/locale' ;
8- import { PermissionResource , Permissions , PermissionValue } from 'sentry/types/index ' ;
7+ import { PermissionResource , Permissions , PermissionValue } from 'sentry/types' ;
98
109/**
1110 * Custom form element that presents API scopes in a resource-centric way. Meaning
@@ -88,7 +87,7 @@ type State = {
8887} ;
8988
9089function findResource ( r : PermissionResource ) {
91- return find ( SENTRY_APP_PERMISSIONS , [ ' resource' , r ] ) ;
90+ return SENTRY_APP_PERMISSIONS . find ( permissions => permissions . resource === r ) ;
9291}
9392
9493/**
You can’t perform that action at this time.
0 commit comments