Skip to content

Commit

Permalink
Make function less brittle
Browse files Browse the repository at this point in the history
  • Loading branch information
sandersky committed Aug 4, 2016
1 parent 6acabb9 commit 0dd5283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/components/cell.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
export function removeIndex (path) {
const parts = (path || '').split('.')
const last = parts.length !== 0 ? parts.pop() : ''
return /^\d+$/.test(last) ? parts.join('.') : path
return /^\d+$/.test(last) ? parts.join('.') : path || ''
}

export default Component.extend(PropTypeMixin, {
Expand Down

0 comments on commit 0dd5283

Please sign in to comment.