Patch broken integratins due to permission update

This commit is contained in:
Tuan Dang
2023-09-09 17:29:19 +01:00
parent 110153385b
commit 83d2a39fb1
53 changed files with 60 additions and 269 deletions
@@ -83,7 +83,7 @@ export default function VercelCreateIntegrationPage() {
if (!targetApp || !targetApp.appId) return;
const path = targetEnvironment === "preview" && targetBranch !== "" ? targetBranch : null;
const path = targetEnvironment === "preview" && targetBranch !== "" ? targetBranch : undefined;
await mutateAsync({
integrationAuthId: integrationAuth?._id,
@@ -92,12 +92,7 @@ export default function VercelCreateIntegrationPage() {
appId: targetApp.appId,
sourceEnvironment: selectedSourceEnvironment,
targetEnvironment,
targetEnvironmentId: null,
targetService: null,
targetServiceId: null,
owner: null,
path,
region: null,
secretPath
});