Skip to content

Conversation

@scttcper
Copy link
Member

removes use of react router 3 style props

@scttcper scttcper requested a review from a team November 21, 2025 00:51
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 21, 2025
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Missing function call parentheses in renderTokens

The condition checks !hasTokenAccess instead of calling the function !hasTokenAccess(). Since hasTokenAccess is a function, checking the function reference itself will always be truthy, making the negation always false. This means the access control check will never execute and users will always see the token list instead of the "no access" message.

static/app/views/settings/organizationDeveloperSettings/sentryApplicationDetails.tsx#L283-L284

const renderTokens = () => {
if (!hasTokenAccess) {

Fix in Cursor Fix in Web


@scttcper scttcper enabled auto-merge (squash) November 21, 2025 00:55
@scttcper scttcper merged commit 6f599dd into master Nov 21, 2025
49 checks passed
@scttcper scttcper deleted the scttcper/deprecated-props-application-details branch November 21, 2025 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants