Skip to content

Commit 08b1a55

Browse files
authored
fix: remove lodash/find usages (#63150)
Replaces `lodash.find` with `Array.prototype.find` method. Ref: https://github.com/getsentry/frontend-tsc/issues/55
1 parent d249220 commit 08b1a55

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

static/app/views/settings/organizationDeveloperSettings/permissionSelection.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import {Component, Fragment} from 'react';
2-
import find from 'lodash/find';
32

43
import SelectField from 'sentry/components/forms/fields/selectField';
54
import FormContext from 'sentry/components/forms/formContext';
65
import {SENTRY_APP_PERMISSIONS} from 'sentry/constants';
76
import {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

9089
function findResource(r: PermissionResource) {
91-
return find(SENTRY_APP_PERMISSIONS, ['resource', r]);
90+
return SENTRY_APP_PERMISSIONS.find(permissions => permissions.resource === r);
9291
}
9392

9493
/**

0 commit comments

Comments
 (0)