fix initial count for instanceSSO

This commit is contained in:
Anantshree Chandola 2024-08-07 15:44:45 +05:30
parent af8ac37489
commit 84ab6756fb

View file

@ -80,11 +80,13 @@ class SSOConfiguration extends React.Component {
componentDidMount() {
const initialState = this.initializeOptionStates(this.props.ssoOptions);
const enabledSSOCount = this.getCountOfEnabledSSO();
this.setState({ ...initialState });
this.setState({ ssoOptions: this.props.ssoOptions });
this.setState({ defaultSSO: this.props.defaultSSO });
this.setState({ isAnySSOEnabled: this.props.isAnySSOEnabled });
this.setState({ instanceSSO: this.props.instanceSSO });
this.setState({ inheritedInstanceSSO: enabledSSOCount });
}
componentDidUpdate(prevProps) {