|
@@ -30,7 +30,7 @@ const UserGroupCard = ({isCollectData, updateUserGroupList,userData,isNewRecord} |
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
|
//if state data are ready and assign to different field |
|
|
//if state data are ready and assign to different field |
|
|
if (Object.keys(userData).length > 0 &¤tUserData !== undefined) { |
|
|
|
|
|
|
|
|
if (Object.keys(userData).length > 0 || currentUserData !== undefined) { |
|
|
setOnReady(true); |
|
|
setOnReady(true); |
|
|
} |
|
|
} |
|
|
}, [currentUserData]); |
|
|
}, [currentUserData]); |
|
|