Skip to content

Commit

Permalink
Merge pull request #236 from threefoldtech/development_network_saving
Browse files Browse the repository at this point in the history
Fix saving networks
  • Loading branch information
AhmedHanafy725 authored May 11, 2023
2 parents 54fbaf0 + f681022 commit 748ac9e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ class TwinDeploymentHandler {
async saveNetworks(twinDeployments: TwinDeployment[]) {
const savedNetworkNames: string[] = [];
for (const twinDeployment of twinDeployments) {
if (savedNetworkNames.includes(twinDeployment.network.name)) continue;
if (twinDeployment.network) {
if (savedNetworkNames.includes(twinDeployment.network.name)) continue;
savedNetworkNames.push(twinDeployment.network.name);
if (twinDeployment.operation === Operations.delete) {
await twinDeployment.network.save();
Expand Down

0 comments on commit 748ac9e

Please sign in to comment.