Преглед изворни кода

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>