Skip to content

Commit

Permalink
Update app/src/lib/stores/app-store.ts
Browse files Browse the repository at this point in the history
Co-authored-by: evelyn masso <outofambit@github.com>
  • Loading branch information
niik and outofambit committed Jun 5, 2020
1 parent 844548e commit 3286cec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/lib/stores/app-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2342,6 +2342,7 @@ export class AppStore extends TypedBaseStore<IAppState> {
public _hideStashedChanges(repository: Repository) {
const { changesState } = this.repositoryStateCache.get(repository)

// makes this safe to call even when the stash ui is not visible
if (changesState.selection.kind !== ChangesSelectionKind.Stash) {
return
}
Expand Down

0 comments on commit 3286cec

Please sign in to comment.