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

Request History: Set dropdown value to the response instead of null #2735

Merged
merged 2 commits into from Aug 31, 2021

Conversation

thewheat
Copy link
Contributor

@thewheat thewheat commented Oct 17, 2020

Before (current broken behaviour)
before

After (which this fix)
after

Context of the bug

  • So the bug is due to this section of code
    return (
    <React.Fragment>
    <DropdownDivider>5 Minutes Ago</DropdownDivider>
    {categories.minutes.map(this.renderDropdownItem)}
    <DropdownDivider>2 Hours Ago</DropdownDivider>
    {categories.hours.map(this.renderDropdownItem)}
    <DropdownDivider>Today</DropdownDivider>
    {categories.today.map(this.renderDropdownItem)}
    <DropdownDivider>This Week</DropdownDivider>
    {categories.week.map(this.renderDropdownItem)}
    <DropdownDivider>Older Than This Week</DropdownDivider>
    {categories.other.map(this.renderDropdownItem)}
    </React.Fragment>
  • Each .map will start at index of 0 so the first item in the new grouping would cause the issue

@CLAassistant
Copy link

CLAassistant commented Dec 6, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@develohpanda develohpanda left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this and my apologies for the delay in review, it's been quite challenging to keep up with open-source PRs, but the team is working on it. We really appreciate your time! 🙌🏽

Verified as fixed in this PR, and broken in the current stable release.

@develohpanda develohpanda enabled auto-merge (squash) August 31, 2021 06:00
@develohpanda develohpanda merged commit 84fc8f3 into Kong:develop Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants