fix: remove configured marker when deleting oauth provider configuration (#7887)
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
This commit is contained in:
@@ -213,6 +213,12 @@ export default function ProviderConfigurationModal({
|
|||||||
for (const param of params) {
|
for (const param of params) {
|
||||||
await remove(param.name, param.secret);
|
await remove(param.name, param.secret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const hasOAuthKey = params.some((key) => key.oauth_flow);
|
||||||
|
if (hasOAuthKey) {
|
||||||
|
const configuredMarker = `${provider.name}_configured`;
|
||||||
|
await remove(configuredMarker, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onClose();
|
onClose();
|
||||||
|
|||||||
Reference in New Issue
Block a user