Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with OIDC scope list search #4349

Merged
merged 3 commits into from
Oct 26, 2023

Conversation

NipuniBhagya
Copy link
Contributor

Purpose

This PR fixese the issue with OIDC scope list loading issue when an unlisted item is searched.

Related Issues

DonOmalVindula
DonOmalVindula previously approved these changes Oct 26, 2023
if (searchQuery.length > 0) {
const result: OIDCScopesListInterface[] = scopeList.filter((item: OIDCScopesListInterface) =>
item.name.toLowerCase().indexOf(searchQuery.toLowerCase()) !== -1);
// useEffect(() => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this commented code? If not we can remove it

@@ -172,6 +163,23 @@ const OIDCScopesPage: FunctionComponent<OIDCScopesPageInterface> = (
(option: { key: number; text: string; value: string; }) => option.value === data.value)[ 0 ]);
};

const handleKeyPress = (event: React.KeyboardEvent<HTMLInputElement>) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we use a more meaningful name for this function? Let's also add a doc comment as well :)

@NipuniBhagya NipuniBhagya merged commit 628bd8b into wso2:master Oct 26, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants