浏览代码

fixed the login component not pass the object children

triste 7 年之前
父节点
当前提交
d9793524b7
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/components/Login/index.js

+ 1 - 3
src/components/Login/index.js

@@ -113,9 +113,7 @@ class Login extends Component {
                 </Tabs>
                 {otherChildren}
               </React.Fragment>
-            ) : (
-              [...children]
-            )}
+            ) : children}
           </Form>
         </div>
       </LoginContext.Provider>