Skip to content

Commit

Permalink
Sibling check fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ekuiter committed Aug 25, 2018
1 parent 4f3304b commit a1b07e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ cache:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/

before_deploy: tar -zcf variED-${TRAVIS_TAG}.tar.gz -C build .

deploy:
- provider: releases
file_glob: true
file: build/**/*
file: variED-${TRAVIS_TAG}.tar.gz
skip_cleanup: true
on:
repo: ekuiter/variED
Expand Down
5 changes: 4 additions & 1 deletion client/src/server/FeatureModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ export default class FeatureModel {
}

isSiblingFeatures(featureNames) {
const parents = featureNames.map(this.getNode.bind(this)).map(node => node.parent);
const parents = featureNames
.map(this.getNode.bind(this))
.filter(node => node)
.map(node => node.parent);
return parents.every(parent => parent === parents[0]);
}
};

0 comments on commit a1b07e9

Please sign in to comment.