additional zero check for fixing broken tests

This commit is contained in:
einhornimmond 2021-09-07 11:48:42 +02:00 committed by Ulf Gebhardt
parent d4ca210e8f
commit 9787764e6c
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -63,7 +63,10 @@ export default {
year: new Date().getFullYear(),
version: CONFIG.APP_VERSION,
hash: process.env.VUE_APP_BUILD_COMMIT,
shortHash: process.env.VUE_APP_BUILD_COMMIT.substr(0, 8),
shortHash:
process.env.VUE_APP_BUILD_COMMIT !== undefined
? process.env.VUE_APP_BUILD_COMMIT.substr(0, 8)
: '00000000',
}
},
}