Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JayaShakthi97 committed Feb 19, 2024
1 parent 7c8d8cb commit 880de6e
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
* Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
Expand Down Expand Up @@ -81,8 +81,8 @@ const ApplicationRoleGroups = (props: ApplicationRoleGroupsProps): ReactElement
error: applicationRoleGroupDataFetchRequestError
} = useApplicationRoleMappedGroups(appId, roleId);

useEffect(() => {
if (originalApplicationRoleGroupData instanceof IdentityAppsApiException
useEffect(() => {
if (originalApplicationRoleGroupData instanceof IdentityAppsApiException
|| applicationRoleGroupDataFetchRequestError) {
handleAlerts({
description: t(
Expand Down Expand Up @@ -124,11 +124,11 @@ const ApplicationRoleGroups = (props: ApplicationRoleGroupsProps): ReactElement

if (query === "") {
setProcessedGroupsList(originalApplicationRoleGroupData.groups);

return;
}

const filteredGroupsList: ApplicationRoleGroupInterface[] =
const filteredGroupsList: ApplicationRoleGroupInterface[] =
originalApplicationRoleGroupData.groups.filter((group: ApplicationRoleGroupInterface) => {
return group.name.toLowerCase().includes(query.toLowerCase());
});
Expand All @@ -148,7 +148,7 @@ const ApplicationRoleGroups = (props: ApplicationRoleGroupsProps): ReactElement
};

setSubmitting(true);

updateApplicationRoleMappedGroups(appId, roleId, groupData)
.then(() => {
handleAlerts({
Expand Down Expand Up @@ -274,7 +274,7 @@ const ApplicationRoleGroups = (props: ApplicationRoleGroupsProps): ReactElement

return null;
};

/**
* Resolves data table columns.
*/
Expand Down Expand Up @@ -374,7 +374,7 @@ const ApplicationRoleGroups = (props: ApplicationRoleGroupsProps): ReactElement
};

return (
!isApplicationRoleGroupDataFetchRequestLoading
!isApplicationRoleGroupDataFetchRequestLoading
? (
<>
<Grid>
Expand All @@ -386,7 +386,7 @@ const ApplicationRoleGroups = (props: ApplicationRoleGroupsProps): ReactElement
data-componentid={ `${ componentId }-groups-list-search-input` }
icon={ <Icon name="search" /> }
iconPosition="left"
onChange={ (e: ChangeEvent<HTMLInputElement>) =>
onChange={ (e: ChangeEvent<HTMLInputElement>) =>
searchGroups(e.target.value) }
value={ searchQuery }
placeholder={ t("extensions:console.applicationRoles.roleGroups." +
Expand Down

0 comments on commit 880de6e

Please sign in to comment.