fix: show beat.msg only if available

This commit is contained in:
Andreas Brett 2021-10-22 11:59:53 +02:00
parent c6fc385289
commit 657987a013

View File

@ -167,7 +167,7 @@ export default {
},
getBeatTitle(beat) {
return `${this.$root.datetime(beat.time)} - ${beat.msg}`;
return `${this.$root.datetime(beat.time)}` + ((beat.msg) ? ` - ${beat.msg}` : ``);
}
},
}