Skip to content

Commit 373c33a

Browse files
committed
Fixed linter
1 parent 5f7d458 commit 373c33a

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

client/src/connection/Testing.jsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -751,18 +751,18 @@ export const Testing = ({
751751
);
752752
}
753753

754-
const changeAllowedTestEntity = (idp, e) => {
755-
const checked = e.target.checked;
756-
const allowedEntities = connection.allowedEntities || [];
757-
if (checked) {
758-
setConnection({...connection, allowedEntities: [...allowedEntities, idp.entityid]})
759-
} else {
760-
setConnection({
761-
...connection,
762-
allowedEntities: [...allowedEntities.filter(entityid => entityid !== idp.entityid)]
763-
})
764-
}
765-
};
754+
// const changeAllowedTestEntity = (idp, e) => {
755+
// const checked = e.target.checked;
756+
// const allowedEntities = connection.allowedEntities || [];
757+
// if (checked) {
758+
// setConnection({...connection, allowedEntities: [...allowedEntities, idp.entityid]})
759+
// } else {
760+
// setConnection({
761+
// ...connection,
762+
// allowedEntities: [...allowedEntities.filter(entityid => entityid !== idp.entityid)]
763+
// })
764+
// }
765+
// };
766766

767767
const changeAllowedEntity = options => {
768768
const iDps = config.identityProviders;

client/src/pages/MyOrganization.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const MyOrganization = ({refreshUser}) => {
7575
}, [focusedId]);
7676

7777
const availableSections = useMemo(() => {
78-
const isExternalUser = externalUser;
78+
const isExternalUser = user.externalUser;
7979
return Object.values(sections)
8080
.filter(s => s !== sections.delete || (isExternalUser && (user.superUser || isOrganizationAdmin(user, organization))))
8181
.filter(s => s !== sections.contactPersons || !isExternalUser)

0 commit comments

Comments
 (0)