-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
| <tr th:class="${row.even}? (${row.first}? 'first' : 'even') : 'odd'"> |
The first row checking ternary needs to be on the odd half of the even checking ternary rather than the even.
1 is odd so row.even will evaluate to false and then be set to "odd".
There is no way for the "first" to ever be returned.
Proposed refactor:
<tr th:class="${row.first}? 'first' : (${row.even} ? 'even' : 'odd')">
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels