Fix #5745: Some labels without value still show a 'null' value (#5771)

This commit is contained in:
Louis Lam 2025-04-18 07:35:09 +08:00 committed by GitHub
parent 13a85b8200
commit 510056fbbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,7 +48,7 @@ export default {
},
computed: {
displayText() {
if (this.item.value === "" || this.item.value === undefined) {
if (this.item.value === "" || this.item.value === undefined || this.item.value === null) {
return this.item.name;
} else {
return `${this.item.name}: ${this.item.value}`;