Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
fix(view-manager): default namespaceOrDefault.map to {}
  • Loading branch information
doktordirk committed Aug 2, 2016
1 parent 14f8ac0 commit 6b898589bea07c3ce1fdd225831b5780346d2e8b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/view-manager.js
@@ -27,7 +27,7 @@ export class ViewManager {
let namespaceOrDefault = Object.create(this.config.fetch(namespace));
namespaceOrDefault.view = view;

let location = namespaceOrDefault.map[view] || namespaceOrDefault.location;
let location = (namespaceOrDefault.map || {})[view] || namespaceOrDefault.location;

return render(location, namespaceOrDefault);
}

0 comments on commit 6b89858

Please sign in to comment.