Skip to content

Commit

Permalink
fix: safe check added if cell value is not found in resource list (#2839
Browse files Browse the repository at this point in the history
)

* reource list api fix : safe check added if cell value is not found

* fix : instead of sending nil, sending empty
  • Loading branch information
manish-agrawal-ai authored Jan 9, 2023
1 parent 34c948d commit 9c2ca8c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/util/K8sUtil.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,13 @@ func (impl K8sUtil) BuildK8sObjectListTableData(manifest *unstructured.Unstructu
}
rowCells := cellsUncast.([]interface{})
for index, columnName := range columnIndexes {
cell := rowCells[index].(interface{})
cellValUncast := rowCells[index]
var cell interface{}
if cellValUncast == nil {
cell = ""
} else {
cell = cellValUncast.(interface{})
}
rowIndex[columnName] = cell
}

Expand Down

0 comments on commit 9c2ca8c

Please sign in to comment.