Skip to content

Commit

Permalink
Merge pull request #73 from BBVAEngineering/fix/filter-falsy
Browse files Browse the repository at this point in the history
Fix/filter falsy
  • Loading branch information
josex2r authored Jul 29, 2021
2 parents 38e2bc9 + 0eb33df commit 4fdb63c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
.eslintcache
*.html
*.hbs
CHANGELOG.md

# ember-try
/.node_modules.ember-try/
Expand Down
3 changes: 2 additions & 1 deletion addon/helpers/transition.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { getOwner } from '@ember/application';
import Helper from '@ember/component/helper';
import { isPresent } from '@ember/utils';
import { setHelperManager, capabilities } from '@ember/helper';
import handleQueryParams from '../utils/handle-query-params';
import { getMountPoint, prefixMountPoint } from '../utils/mount-point';
Expand Down Expand Up @@ -55,7 +56,7 @@ export default class TransitionHelper extends Helper {

routeName = this.getRouteName(routeName, mountPoint);

const params = handleQueryParams([routeName, ...rest].filter(Boolean));
const params = handleQueryParams([routeName, ...rest].filter(isPresent));

return router[this.transitionMethod](...params);
};
Expand Down

0 comments on commit 4fdb63c

Please sign in to comment.