mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
chore: remove unused SCIM setting - assumeControlOfExisting (#8101)
This property is unused and should be removed. This fixes a logged schema error: ``` Invalid response: { "schema": "#/components/schemas/scimSettingsSchema", "errors": [ { "instancePath": "", "schemaPath": "#/required", "keyword": "required", "params": { "missingProperty": "assumeControlOfExisting" }, "message": "must have required property 'assumeControlOfExisting'" } ] } ```
This commit is contained in:
parent
2daa0cd8ca
commit
355b3eb58a
@ -50,7 +50,7 @@ export const ScimSettings = () => {
|
||||
const saveScimSettings = async (enabled: boolean) => {
|
||||
try {
|
||||
setEnabled(enabled);
|
||||
await saveSettings({ enabled, assumeControlOfExisting: false });
|
||||
await saveSettings({ enabled });
|
||||
if (enabled && !settings.hasToken) {
|
||||
const token = await generateNewToken();
|
||||
setNewToken(token);
|
||||
|
@ -9,13 +9,11 @@ const ENDPOINT = 'api/admin/scim-settings';
|
||||
export type ScimSettings = {
|
||||
enabled: boolean;
|
||||
hasToken: boolean;
|
||||
assumeControlOfExisting: boolean;
|
||||
};
|
||||
|
||||
const DEFAULT_DATA: ScimSettings = {
|
||||
enabled: false,
|
||||
hasToken: false,
|
||||
assumeControlOfExisting: false,
|
||||
};
|
||||
|
||||
export const useScimSettings = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user