Fix beacon Minor 0 not displaying in service points page
b.Minor is 0 for the first beacon which is falsy in JS. Changed to null check so Minor: 0 displays correctly. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
57ef40f737
commit
194eb4d205
1 changed files with 1 additions and 1 deletions
|
|
@ -1710,7 +1710,7 @@ const Portal = {
|
||||||
}
|
}
|
||||||
|
|
||||||
container.innerHTML = this.beacons.map(b => {
|
container.innerHTML = this.beacons.map(b => {
|
||||||
const minorInfo = b.Minor ? ` (Minor: ${b.Minor})` : '';
|
const minorInfo = b.Minor != null ? ` (Minor: ${b.Minor})` : '';
|
||||||
return `
|
return `
|
||||||
<div class="list-group-item ${b.IsActive ? '' : 'inactive'}">
|
<div class="list-group-item ${b.IsActive ? '' : 'inactive'}">
|
||||||
<div class="item-info">
|
<div class="item-info">
|
||||||
|
|
|
||||||
Reference in a new issue