Przeglądaj źródła

fixed the login component not pass the object children

triste 7 lat temu
rodzic
commit
d9793524b7
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1 3
      src/components/Login/index.js

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

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