We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a4d7ba commit 6b2aa53Copy full SHA for 6b2aa53
src/reactViews.tsx
@@ -32,10 +32,14 @@ export function reactViewsBuilder(state: StateObject) {
32
if (!state.views) {
33
viewsDefinitionObject = { $default: pick(state, ['component']) };
34
} else {
35
- viewsDefinitionObject = map(state.views, (val: any, key) => {
36
- if (val.component) return val;
37
- return { component: val };
38
- });
+ viewsDefinitionObject = map(
+ state.views,
+ (val: any, key) => {
+ if (val.component) return val;
39
+ return { component: val };
40
+ },
41
+ viewsDefinitionObject,
42
+ );
43
}
44
45
forEach(viewsDefinitionObject, function(config, name) {
0 commit comments