From 36d4912a5ee13edcd22ff62b7b7ebdbdf19fd738 Mon Sep 17 00:00:00 2001 From: Adriaan Date: Mon, 2 Sep 2019 16:59:09 +0200 Subject: [PATCH] Fix context tab crash when not using git (#24) --- resources/js/components/Tabs/ContextTab.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/js/components/Tabs/ContextTab.vue b/resources/js/components/Tabs/ContextTab.vue index 3b8bbd36..0a8ac374 100644 --- a/resources/js/components/Tabs/ContextTab.vue +++ b/resources/js/components/Tabs/ContextTab.vue @@ -3,10 +3,10 @@
- + {{ repoUrl }} - + “{{ git.message }}” – {{ git.hash }} @@ -99,6 +99,10 @@ export default { }, repoUrl() { + if (!this.git.remote) { + return null; + } + const git = { ...this.repoInfo, git_suffix: false,