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 file name reactivity in sidebar #7734

Merged
merged 1 commit into from
Oct 5, 2022
Merged

Conversation

JammingBen
Copy link
Collaborator

Description

We've fixed a bug where the file name would not update reactively in the sidebar after changing it.

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

@JammingBen JammingBen self-assigned this Oct 4, 2022
@sonarcloud
Copy link

sonarcloud bot commented Oct 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@@ -34,7 +34,6 @@ export default {
components: {
PrivateLinkItem
},
inject: ['displayedItem'],
Copy link
Member

Choose a reason for hiding this comment

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

What exactly is/was the issue? Is the displayedItem not updating properly, or is the usage within this component not reactive?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because displayedItem is only a copy of the highlighted file:

this.selectedFile = { ...this.highlightedFile }

@kulmann kulmann merged commit 25c22a5 into master Oct 5, 2022
@delete-merged-branch delete-merged-branch bot deleted the fix-file-name-reactivity branch October 5, 2022 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resource name in sidebar does not update reactively
2 participants