Skip to content

Conversation

@cgalibern
Copy link
Contributor

### Description of Changes

This pull request includes the following changes:
1. **Reset Button for Default Authentication Choice**:
   - Added a button in the Authenticating dialog, allowing users to clear the `opensvc.authChoice` value stored in local storage.
   - The button reloads the page after resetting the choice to provide a smooth user experience.

2. **Fix `ObjInstanceStateList` Error**:
   - Corrected handling of `null` and `undefined` values in the `ObjInstanceStateList` component.
   - Refactored property access to ensure stability and prevent runtime errors related to undefined object properties.

This commit fixes null and undefined handling in ObjInstanceStateList component.
It Refactors object property access to ensure robust checks for undefined values, improving stability and preventing runtime errors.

## Fixed error:

    TypeError: Cannot read properties of undefined (reading 'avail')
    at src/js/components/ObjInstanceStateList.jsx?:29:20
Introduced a button that clears the `opensvc.authChoice` value from local storage and reloads the page. This allows users to unset their default authentication method gracefully.
@cgalibern cgalibern merged commit 5669e82 into opensvc:v7 Aug 25, 2025
1 check 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.

1 participant