mirror of
https://github.com/makeplane/plane.git
synced 2025-12-15 19:37:51 +01:00
fix: remove default value for sync options in OAuth configuration forms
This commit is contained in:
@@ -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<GiteaConfigFormValues> = { ...formData };
|
||||
|
||||
try {
|
||||
const response = (await updateInstanceConfigurations(payload)) || [];
|
||||
const response = await updateInstanceConfigurations(payload);
|
||||
setToast({
|
||||
type: TOAST_TYPE.SUCCESS,
|
||||
title: "Done!",
|
||||
|
||||
@@ -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<GithubConfigFormValues> = { ...formData };
|
||||
|
||||
try {
|
||||
const response = (await updateInstanceConfigurations(payload)) || [];
|
||||
const response = await updateInstanceConfigurations(payload);
|
||||
setToast({
|
||||
type: TOAST_TYPE.SUCCESS,
|
||||
title: "Done!",
|
||||
|
||||
@@ -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<GitlabConfigFormValues> = { ...formData };
|
||||
|
||||
try {
|
||||
const response = (await updateInstanceConfigurations(payload)) || [];
|
||||
const response = await updateInstanceConfigurations(payload);
|
||||
setToast({
|
||||
type: TOAST_TYPE.SUCCESS,
|
||||
title: "Done!",
|
||||
|
||||
@@ -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<GoogleConfigFormValues> = { ...formData };
|
||||
|
||||
try {
|
||||
const response = (await updateInstanceConfigurations(payload)) || [];
|
||||
const response = await updateInstanceConfigurations(payload);
|
||||
setToast({
|
||||
type: TOAST_TYPE.SUCCESS,
|
||||
title: "Done!",
|
||||
|
||||
Reference in New Issue
Block a user