Fix client-side railway integration issue

This commit is contained in:
Tuan Dang
2024-01-06 16:09:15 +01:00
parent ec2cc5162e
commit 0a3b85534b
2 changed files with 31 additions and 12 deletions
@@ -297,6 +297,7 @@ const fetchIntegrationAuthRailwayEnvironments = async ({
integrationAuthId: string;
appId: string;
}) => {
if (appId === "none") return [];
const {
data: { environments }
} = await apiRequest.get<{ environments: Environment[] }>(
@@ -318,6 +319,11 @@ const fetchIntegrationAuthRailwayServices = async ({
integrationAuthId: string;
appId: string;
}) => {
// console.log('fetchIntegrationAuthRailwayServices params: ', {
// integrationAuthId,
// appId
// });
if (appId === "none") return [];
const {
data: { services }
} = await apiRequest.get<{ services: Service[] }>(