aboutsummaryrefslogtreecommitdiff
path: root/packages/client/src/components/CommitPatch.vue
diff options
context:
space:
mode:
Diffstat (limited to 'packages/client/src/components/CommitPatch.vue')
-rw-r--r--packages/client/src/components/CommitPatch.vue6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/client/src/components/CommitPatch.vue b/packages/client/src/components/CommitPatch.vue
index dca886f..fbc9e3a 100644
--- a/packages/client/src/components/CommitPatch.vue
+++ b/packages/client/src/components/CommitPatch.vue
@@ -19,6 +19,12 @@ export default defineComponent({
]);
}
+ if(!props.patch.hunks) {
+ return () => h("div", { class: "ps-3 pt-3" }, [
+ h("span", "Empty.")
+ ]);
+ }
+
// Array of hunks without the first chunk headers
const all_hunks = props.patch.hunks.map((hunk) => hunk.hunk.split("\n").slice(1).join("\n"));