Skip to content

Fix default branch buttons in some cases - #1168

Merged
fregante merged 4 commits into
masterfrom
fix-branch-buttons
Mar 23, 2018
Merged

fregante merged 4 commits into
masterfrom
fix-branch-buttons

Conversation

@fregante

@fregante fregante commented Mar 14, 2018 •

Copy link
Copy Markdown
Member

Changes:

Follows #1115
Replaces #1132 (more context there)

Uhhh... the branch name was being cached without any reference to the repo's itself, so all repos would point to that branch for the current session
@fregante fregante added the bug label Mar 14, 2018

// Return the cached name if it differs from the current one
const cachedName = sessionStorage.getItem('rgh-default-branch');
const cachedName = sessionStorage.getItem(cacheKey);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants