Added a way to get the sub orgs of the current org
This commit is contained in:
@@ -162,6 +162,7 @@ const Admin = (props) => {
|
||||
const [loginInfo, setLoginInfo] = React.useState("");
|
||||
const [curTab, setCurTab] = React.useState(0);
|
||||
const [users, setUsers] = React.useState([]);
|
||||
const [subOrgs, setSubOrgs] = useState([]);
|
||||
const [organizations, setOrganizations] = React.useState([]);
|
||||
const [orgSyncResponse, setOrgSyncResponse] = React.useState("");
|
||||
const [userSettings, setUserSettings] = React.useState({});
|
||||
@@ -204,6 +205,10 @@ const Admin = (props) => {
|
||||
}
|
||||
}, [isDropzone]);
|
||||
|
||||
useEffect(() => {
|
||||
handleGetSubOrgs(userdata.active_org.id);
|
||||
}, []);
|
||||
|
||||
const isCloud = window.location.host === "localhost:3002" || window.location.host === "shuffler.io";
|
||||
|
||||
const get2faCode = (userId) => {
|
||||
|
||||
Reference in New Issue
Block a user