fix(stacks): stack.env can be null [BE-12736] (#2241)
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user