fix(stacks): stack.env can be null [BE-12736] (#2241)

This commit is contained in:
Chaim Lev-Ari
2026-04-06 16:56:49 +03:00
committed by GitHub
parent 14f25f1e88
commit a7d2d134d0
7 changed files with 8 additions and 8 deletions
@@ -25,7 +25,7 @@ export async function duplicateStack({
fileContent: string;
targetEnvironmentId: EnvironmentId;
type: StackType;
env?: Array<Pair>;
env?: Array<Pair> | null;
}) {
if (type === StackType.DockerSwarm) {
const swarm = await getSwarm(targetEnvironmentId);