Skip to content

fix edit config link on dashboard #4564

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

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

cbodonnell
Copy link
Contributor

What this PR does / why we need it:

This PR fixes an issue where the url for the "Edit Config" link on the dashboard was invalid and contained an undefined reference.

Screenshot 2024-04-22 at 12 18 43 PM

Which issue(s) this PR fixes:

Fixes SC-102656

Special notes for your reviewer:

Steps to reproduce

Does this PR introduce a user-facing change?

Fixes an issue where the **Edit config* link on the dashboard was not functioning as expected.

Does this PR require documentation?

NONE

@cbodonnell cbodonnell added type::bug Something isn't working bug::normal labels Apr 22, 2024
@@ -148,7 +147,7 @@ export default class AppStatus extends Component<Props, State> {
</>
)}
<Link
to={`${url}/config/${app?.downstream?.currentVersion?.sequence}`}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not aware of a scenario where this was not undefined, so I just removed it all together. Tested this with both single and multi-app installs and both render the correct link for editing config.

@cbodonnell cbodonnell requested a review from sgalsaleh April 22, 2024 16:29
@cbodonnell cbodonnell merged commit e22a685 into main Apr 22, 2024
@cbodonnell cbodonnell deleted the cbo/sc-102656/fix-edit-config-link-on-dashboard branch April 22, 2024 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug::normal type::bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants