Skip to content

Commit 13208ab

Browse files
committed
fix error if no stashes present.
1 parent 9ea7717 commit 13208ab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

public/js/app/webgit-home/repo-detail/repo-detail.component.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,11 @@
641641
function selectStash() {
642642
// TODO: Show loading dialog.
643643
var stash = vm.selectedStash;
644+
645+
if(!stash.name) {
646+
return;
647+
}
648+
644649
if(stash.name === 'Local Changes') {
645650
// show local changes.
646651
if(repoDetailService.selectStash.canceler) {

0 commit comments

Comments
 (0)