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

Ensure security config dialog is properly updated with props changes #959

Merged
merged 1 commit into from
Mar 1, 2025

Conversation

Piumal1999
Copy link
Contributor

Purpose

Purpose of the PR is to fix wso2/api-manager#3661

Issue

When the user clicks the security configuration button while the endpoint text box is focused, both editEndpoint and toggleEndpointSecurityConfig are triggered simultaneously. This causes the securityInfo to become undefined after the security config dialog box is opened.

Fix

Added a useEffect hook to ensures that securityInfo is reinitialized with the default values if the props change while the dialog box is open

@Avishka-Shamendra Avishka-Shamendra merged commit b6a7bb3 into wso2:main Mar 1, 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.

API Deployment/Invocation Failure with Basic Auth Endpoint Security on Distributed Setup
3 participants