Skip to content
This repository was archived by the owner on Oct 3, 2020. It is now read-only.

Commit c9190c5

Browse files
authored
Merge pull request #118 from hjacobs/pod-name-undefined
#103 assume empty pod name if undefined
2 parents 7502e5c + 0b8ab2c commit c9190c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/pod.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import {BRIGHTNESS_FILTER} from './filters.js'
66
const ALL_PODS = {}
77

88
const sortByName = (a, b) => {
9-
return a.name.localeCompare(b.name)
9+
// https://github.com/hjacobs/kube-ops-view/issues/103
10+
// *.name might be undefined
11+
return (a.name || '').localeCompare(b.name || '')
1012
}
1113

1214
const sortByAge = (a, b) => {

0 commit comments

Comments
 (0)