fixed tab being clicked throwing an error

This commit is contained in:
Phil Hughes 2018-04-05 10:46:19 +01:00
parent 8cbbaf9d1b
commit 748cd76762
No known key found for this signature in database
GPG key ID: 32245528C52E0F9F

View file

@ -45,7 +45,7 @@ export default {
this.updateDelayViewerUpdated(true);
if (tab.pending) {
this.openPendingTab(tab);
this.openPendingTab({ file: tab, keyPrefix: tab.staged ? 'staged' : 'unstaged' });
} else {
this.$router.push(`/project${tab.url}`);
}