Skip to content

Commit ead44b1

Browse files
committed
fix: 更新 idp 时同步更新 callbackURL
1 parent 53aad5b commit ead44b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/IdentityProvider/Create/_hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default function useIdentityProviderHook() {
8282
const handleSubmit = async () => {
8383
const values = await formRef.current?.validateFieldsReturnFormatValue?.();
8484
if (values) {
85-
if (values.config.redirectURL && !isEdit) {
85+
if (values.config.redirectURL) {
8686
values.config.redirectURL = getRedirectURL(values.name);
8787
}
8888
return isEdit ? doUpdateIdp(instanceId, values) : doCreateIdp(values);

0 commit comments

Comments
 (0)