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: "Reload" Button in Admin Scopes Not Functioning Correctly (#1329) #855

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

AqeelMuhammad
Copy link
Contributor

Purpose

Goal

  • To ensure that the "Reload" button in the Admin scopes page restores the original data and clears the search input when clicked.

Approach

  • Introduced a new state variable searchText to keep track of the search input value.
  • Created a fetchData function to centralize data fetching logic and reset the search input.
  • Updated the useEffect hook to use the fetchData function.
  • Modified the onSearch function to update the searchText state.
  • Updated the ListAddOns component to accept a searchValue prop and set it as the value of the search input field.

@CLAassistant
Copy link

CLAassistant commented Jan 29, 2025

CLA assistant check
All committers have signed the CLA.

Copy link

@lasanthaS lasanthaS merged commit 771b08c into wso2:main Jan 29, 2025
3 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.

"Reload" button in Admin scopes not functioning
3 participants