diff --git a/apps/admin/app/(all)/(dashboard)/authentication/gitea/form.tsx b/apps/admin/app/(all)/(dashboard)/authentication/gitea/form.tsx index 01d8432816..910cab4ac1 100644 --- a/apps/admin/app/(all)/(dashboard)/authentication/gitea/form.tsx +++ b/apps/admin/app/(all)/(dashboard)/authentication/gitea/form.tsx @@ -43,7 +43,7 @@ export function InstanceGiteaConfigForm(props: Props) { GITEA_HOST: config["GITEA_HOST"] || "https://gitea.com", GITEA_CLIENT_ID: config["GITEA_CLIENT_ID"], GITEA_CLIENT_SECRET: config["GITEA_CLIENT_SECRET"], - ENABLE_GITEA_SYNC: config["ENABLE_GITEA_SYNC"] ?? "0", + ENABLE_GITEA_SYNC: config["ENABLE_GITEA_SYNC"], }, }); @@ -139,7 +139,7 @@ export function InstanceGiteaConfigForm(props: Props) { const payload: Partial = { ...formData }; try { - const response = (await updateInstanceConfigurations(payload)) || []; + const response = await updateInstanceConfigurations(payload); setToast({ type: TOAST_TYPE.SUCCESS, title: "Done!", diff --git a/apps/admin/app/(all)/(dashboard)/authentication/github/form.tsx b/apps/admin/app/(all)/(dashboard)/authentication/github/form.tsx index 0754a873bf..2bfeb5ac2b 100644 --- a/apps/admin/app/(all)/(dashboard)/authentication/github/form.tsx +++ b/apps/admin/app/(all)/(dashboard)/authentication/github/form.tsx @@ -45,7 +45,7 @@ export function InstanceGithubConfigForm(props: Props) { GITHUB_CLIENT_ID: config["GITHUB_CLIENT_ID"], GITHUB_CLIENT_SECRET: config["GITHUB_CLIENT_SECRET"], GITHUB_ORGANIZATION_ID: config["GITHUB_ORGANIZATION_ID"], - ENABLE_GITHUB_SYNC: config["ENABLE_GITHUB_SYNC"] ?? "0", + ENABLE_GITHUB_SYNC: config["ENABLE_GITHUB_SYNC"], }, }); @@ -161,7 +161,7 @@ export function InstanceGithubConfigForm(props: Props) { const payload: Partial = { ...formData }; try { - const response = (await updateInstanceConfigurations(payload)) || []; + const response = await updateInstanceConfigurations(payload); setToast({ type: TOAST_TYPE.SUCCESS, title: "Done!", diff --git a/apps/admin/app/(all)/(dashboard)/authentication/gitlab/form.tsx b/apps/admin/app/(all)/(dashboard)/authentication/gitlab/form.tsx index 91fe7a649c..709ddd94b2 100644 --- a/apps/admin/app/(all)/(dashboard)/authentication/gitlab/form.tsx +++ b/apps/admin/app/(all)/(dashboard)/authentication/gitlab/form.tsx @@ -43,7 +43,7 @@ export function InstanceGitlabConfigForm(props: Props) { GITLAB_HOST: config["GITLAB_HOST"], GITLAB_CLIENT_ID: config["GITLAB_CLIENT_ID"], GITLAB_CLIENT_SECRET: config["GITLAB_CLIENT_SECRET"], - ENABLE_GITLAB_SYNC: config["ENABLE_GITLAB_SYNC"] ?? "0", + ENABLE_GITLAB_SYNC: config["ENABLE_GITLAB_SYNC"], }, }); @@ -143,7 +143,7 @@ export function InstanceGitlabConfigForm(props: Props) { const payload: Partial = { ...formData }; try { - const response = (await updateInstanceConfigurations(payload)) || []; + const response = await updateInstanceConfigurations(payload); setToast({ type: TOAST_TYPE.SUCCESS, title: "Done!", diff --git a/apps/admin/app/(all)/(dashboard)/authentication/google/form.tsx b/apps/admin/app/(all)/(dashboard)/authentication/google/form.tsx index 802f2a454b..971932a881 100644 --- a/apps/admin/app/(all)/(dashboard)/authentication/google/form.tsx +++ b/apps/admin/app/(all)/(dashboard)/authentication/google/form.tsx @@ -43,7 +43,7 @@ export function InstanceGoogleConfigForm(props: Props) { defaultValues: { GOOGLE_CLIENT_ID: config["GOOGLE_CLIENT_ID"], GOOGLE_CLIENT_SECRET: config["GOOGLE_CLIENT_SECRET"], - ENABLE_GOOGLE_SYNC: config["ENABLE_GOOGLE_SYNC"] ?? "0", + ENABLE_GOOGLE_SYNC: config["ENABLE_GOOGLE_SYNC"], }, }); @@ -149,7 +149,7 @@ export function InstanceGoogleConfigForm(props: Props) { const payload: Partial = { ...formData }; try { - const response = (await updateInstanceConfigurations(payload)) || []; + const response = await updateInstanceConfigurations(payload); setToast({ type: TOAST_TYPE.SUCCESS, title: "Done!",