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

Commit

Permalink
Merge pull request #118 from hjacobs/pod-name-undefined
Browse files Browse the repository at this point in the history
#103 assume empty pod name if undefined
  • Loading branch information
hjacobs committed Jan 24, 2017
2 parents 7502e5c + 0b8ab2c commit c9190c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/pod.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import {BRIGHTNESS_FILTER} from './filters.js'
const ALL_PODS = {}

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

const sortByAge = (a, b) => {
Expand Down

0 comments on commit c9190c5

Please sign in to comment.