Skip to content

Commit

Permalink
Merge pull request #26 from Neovici/hideFromRootPartUndefined
Browse files Browse the repository at this point in the history
Undefined check in _computeHideFromRoot
  • Loading branch information
JockeCK authored Aug 31, 2018
2 parents a63f918 + b9e88e5 commit fd89f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmoz-omnitable-treenode-column.html
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@

const paths = values.map(value => this.getPathByProperty(this.keyProperty, value, ownerTree)),
reducedPaths = paths.reduce((agg, part) => {
if (agg === undefined || part.length < agg.length) {
if (agg === undefined || part !== undefined && part.length < agg.length) {
return part;
}
return agg;
Expand Down

0 comments on commit fd89f95

Please sign in to comment.