-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(decorateUIRouterViewConfigs): fix issue with key = but selfView d…
…ef is '' Closes #10
- Loading branch information
1 parent
5504553
commit 3579894
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ hybridModule.config([ | |
|
||
Object.keys(views).forEach(key => { | ||
const view = views[key]; | ||
const selfView = selfViews[key]; | ||
const selfView = selfViews[key || '$default']; | ||
const reactType = isReactComponent(view.component) && 'react'; | ||
view.$type = selfViews[key].$type || reactType || view.$type; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
hrgui
Contributor
|
||
}); | ||
|
Looks like you forget to use
selfView
here. Should it beselfView.$type
?