From 3c4dc7f0388df1d3aabf52b51fbd4aeb78f67e50 Mon Sep 17 00:00:00 2001 From: Warrick Corfe-Tan Date: Mon, 11 Oct 2021 12:28:34 +1100 Subject: [PATCH] Making commit hash show conditionally. --- js/views/debug_log_view.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/views/debug_log_view.js b/js/views/debug_log_view.js index 17bda295a..cb1d9e597 100644 --- a/js/views/debug_log_view.js +++ b/js/views/debug_log_view.js @@ -27,7 +27,10 @@ this.$('textarea').val(i18n('loading')); const operatingSystemInfo = `${i18n('operatingSystem', window.getOSRelease())}`; - const commitHashInfo = i18n('commitHash', window.getCommitHash()); + + const commitHashInfo = window.getCommitHash() + ? i18n('commitHash', window.getCommitHash()) + : ''; // eslint-disable-next-line more/no-then window.log.fetch().then(text => {