Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(issue-stream): Fix bug where replay divider was shown despite no replays #79068

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

MichaelSun48
Copy link
Member

@MichaelSun48 MichaelSun48 commented Oct 11, 2024

closes #79020
before:

image

after:

image

@MichaelSun48 MichaelSun48 requested a review from a team October 11, 2024 22:40
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 11, 2024
projectCanLinkToReplay(organization, project);
projectCanLinkToReplay(organization, project) &&
data.issueCategory &&
getReplayCountForIssue(data.id, data.issueCategory);
Copy link
Member

Choose a reason for hiding this comment

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

can we add a > 0 here - not that it'll make a big different but at least it'll keep showReplayCount a boolean

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point about keeping it a boolean - that function also can return undefined, so i think just converting it to a boolean would achieve the same result without having to do a separate existence check.

@MichaelSun48 MichaelSun48 merged commit 75597ac into master Oct 11, 2024
42 of 43 checks passed
@MichaelSun48 MichaelSun48 deleted the msun/issueStream/fixDividers branch October 11, 2024 23:05
@github-actions github-actions bot locked and limited conversation to collaborators Oct 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue Stream Table: Show separators between each item in second line
2 participants