Explorar el Código

fix group loading

master
Alex Cheung hace 1 año
padre
commit
74704a333b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/pages/User/DetailPage/UserGroupCard.js

+ 1
- 1
src/pages/User/DetailPage/UserGroupCard.js Ver fichero

@@ -30,7 +30,7 @@ const UserGroupCard = ({isCollectData, updateUserGroupList,userData,isNewRecord}

useEffect(() => {
//if state data are ready and assign to different field
if (Object.keys(userData).length > 0 &&currentUserData !== undefined) {
if (Object.keys(userData).length > 0 || currentUserData !== undefined) {
setOnReady(true);
}
}, [currentUserData]);


Cargando…
Cancelar
Guardar