bugfix subcategory
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-03-24 23:08:05 +11:00
parent a3de1b2b03
commit 6389f53ae3
2 changed files with 4 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ type IncidentRow struct {
AssignmentGroup string AssignmentGroup string
AssignedTo string AssignedTo string
Category string Category string
Subcategory string SubCategory string
SysID string SysID string
} }
@@ -71,7 +71,7 @@ templ IncidentsTable(rows []IncidentRow) {
<td>{ row.AssignmentGroup }</td> <td>{ row.AssignmentGroup }</td>
<td>{ row.AssignedTo }</td> <td>{ row.AssignedTo }</td>
<td>{ row.Category }</td> <td>{ row.Category }</td>
<td>{ row.Subcategory }</td> <td>{ row.SubCategory }</td>
</tr> </tr>
} }
</tbody> </tbody>

View File

@@ -28,7 +28,7 @@ type IncidentRow struct {
AssignmentGroup string AssignmentGroup string
AssignedTo string AssignedTo string
Category string Category string
Subcategory string SubCategory string
SysID string SysID string
} }
@@ -248,7 +248,7 @@ func IncidentsTable(rows []IncidentRow) templ.Component {
return templ_7745c5c3_Err return templ_7745c5c3_Err
} }
var templ_7745c5c3_Var15 string var templ_7745c5c3_Var15 string
templ_7745c5c3_Var15, templ_7745c5c3_Err = templ.JoinStringErrs(row.Subcategory) templ_7745c5c3_Var15, templ_7745c5c3_Err = templ.JoinStringErrs(row.SubCategory)
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `views/incidents.templ`, Line: 74, Col: 57} return templ.Error{Err: templ_7745c5c3_Err, FileName: `views/incidents.templ`, Line: 74, Col: 57}
} }