Skip to content

Commit

Permalink
[BUGFIX release] empty path for get helper does not throw assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
bekzod committed Oct 10, 2017
1 parent de55b12 commit 0b0d9cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ember-glimmer/lib/helpers/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class GetHelperReference extends CachedReference {
let path = this.lastPath = this.pathReference.value();

if (path !== lastPath) {
if (path !== undefined && path !== null) {
if (path !== undefined && path !== null && path !== '') {
let pathType = typeof path;

if (pathType === 'string') {
Expand Down

0 comments on commit 0b0d9cf

Please sign in to comment.