File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -62,11 +62,12 @@ export function UIRouterContextComponent(props: {
62
62
63
63
// We know the AngularJS state. Now render the {children}
64
64
const childrenCount = React . Children . count ( children ) ;
65
+ const isArray = Array . isArray ( children ) ;
65
66
66
67
return (
67
68
< UIRouterContext . Provider value = { ( inherited && routerFromReactContext ) || contextFromAngularJS . router } >
68
69
< UIViewContext . Provider value = { ( inherited && parentUIViewFromReactContext ) || contextFromAngularJS . addr } >
69
- { childrenCount === 1 ? React . Children . only ( children ) : < div > { children } </ div > }
70
+ { childrenCount === 1 && ! isArray ? React . Children . only ( children ) : < div > { children } </ div > }
70
71
</ UIViewContext . Provider >
71
72
</ UIRouterContext . Provider >
72
73
) ;
You can’t perform that action at this time.
0 commit comments