Merge pull request #769 from andreasbrett/patch-5

show beat.msg only if available
This commit is contained in:
Louis Lam 2021-10-22 18:14:52 +08:00 committed by GitHub
commit 8a481a1be0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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