mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 22:27:22 +00:00
fix: fix team city integrations create page
This commit is contained in:
+11
-9
@@ -99,15 +99,10 @@ export const TeamcityConfigurePage = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const filteredBuildConfigs = targetBuildConfigs?.concat({
|
|
||||||
name: "",
|
|
||||||
buildConfigId: ""
|
|
||||||
});
|
|
||||||
|
|
||||||
return integrationAuth &&
|
return integrationAuth &&
|
||||||
selectedSourceEnvironment &&
|
selectedSourceEnvironment &&
|
||||||
integrationAuthApps &&
|
integrationAuthApps &&
|
||||||
filteredBuildConfigs &&
|
targetBuildConfigs &&
|
||||||
targetAppId ? (
|
targetAppId ? (
|
||||||
<div className="flex h-full w-full items-center justify-center">
|
<div className="flex h-full w-full items-center justify-center">
|
||||||
<Helmet>
|
<Helmet>
|
||||||
@@ -185,7 +180,7 @@ export const TeamcityConfigurePage = () => {
|
|||||||
))
|
))
|
||||||
) : (
|
) : (
|
||||||
<SelectItem value="none" key="target-app-none">
|
<SelectItem value="none" key="target-app-none">
|
||||||
No project found
|
No projects found
|
||||||
</SelectItem>
|
</SelectItem>
|
||||||
)}
|
)}
|
||||||
</Select>
|
</Select>
|
||||||
@@ -195,15 +190,22 @@ export const TeamcityConfigurePage = () => {
|
|||||||
value={targetBuildConfigId}
|
value={targetBuildConfigId}
|
||||||
onValueChange={(val) => setTargetBuildConfigId(val)}
|
onValueChange={(val) => setTargetBuildConfigId(val)}
|
||||||
className="w-full border border-mineshaft-500"
|
className="w-full border border-mineshaft-500"
|
||||||
|
isDisabled={targetBuildConfigs.length === 0}
|
||||||
>
|
>
|
||||||
{filteredBuildConfigs.map((buildConfig: any) => (
|
{targetBuildConfigs.length ? (
|
||||||
|
targetBuildConfigs.map((buildConfig: any) => (
|
||||||
<SelectItem
|
<SelectItem
|
||||||
value={buildConfig.buildConfigId}
|
value={buildConfig.buildConfigId}
|
||||||
key={`target-build-config-${buildConfig.buildConfigId}`}
|
key={`target-build-config-${buildConfig.buildConfigId}`}
|
||||||
>
|
>
|
||||||
{buildConfig.name}
|
{buildConfig.name}
|
||||||
</SelectItem>
|
</SelectItem>
|
||||||
))}
|
))
|
||||||
|
) : (
|
||||||
|
<SelectItem value="none" key="target-app-none">
|
||||||
|
No build configs found
|
||||||
|
</SelectItem>
|
||||||
|
)}
|
||||||
</Select>
|
</Select>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user