chore(ui): clear eslint mechanical style bucket
Replace loose template null checks with strict null and undefined comparisons and convert the remaining simple index loops to for-of iteration. Keep behavior intact while clearing the low-risk mechanical lint backlog in templates and chart helpers. Validation: just ui lint
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@
|
||||
{{ displayFormat }}
|
||||
</div>
|
||||
}
|
||||
@if (!book.seriesCount && book.metadata?.seriesNumber != null) {
|
||||
@if (!book.seriesCount && book.metadata?.seriesNumber !== null && book.metadata?.seriesNumber !== undefined) {
|
||||
<div class="series-number-overlay">
|
||||
#{{ book.metadata?.seriesNumber }}
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -93,7 +93,7 @@
|
||||
stars="5"
|
||||
[style.--p-rating-icon-active-color]="getStarColor(metadata[col.field])"
|
||||
></p-rating>
|
||||
@if (metadata[col.field] != null) {
|
||||
@if (metadata[col.field] !== null && metadata[col.field] !== undefined) {
|
||||
<span>({{ metadata[col.field]?.toFixed(1) }})</span>
|
||||
}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user