🐛 fix(api): Fix type error in API request and add return URL parameter
This commit is contained in:
@@ -21,12 +21,12 @@ export default function Page() {
|
||||
},
|
||||
});
|
||||
|
||||
async function updateConfig(key: keyof API.UpdataAuthMethodConfigRequest, value: unknown) {
|
||||
async function updateConfig(key: keyof API.UpdateAuthMethodConfigRequest, value: unknown) {
|
||||
try {
|
||||
await updateAuthMethodConfig({
|
||||
...data,
|
||||
[key]: value,
|
||||
} as API.UpdataAuthMethodConfigRequest);
|
||||
} as API.UpdateAuthMethodConfigRequest);
|
||||
toast.success(t('saveSuccess'));
|
||||
refetch();
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user