Skip to content

Commit e7f2299

Browse files
fix: added fix for flags related issue
1 parent 57ef031 commit e7f2299

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

packages/contentstack-clone/src/lib/util/clone-handler.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -266,14 +266,15 @@ class CloneHandler {
266266
} else {
267267
return reject('Org not found.');
268268
}
269-
}
270-
const exportRes = await cloneCommand.execute(new HandleExportCommand(null, this));
271-
await cloneCommand.execute(new SetBranchCommand(null, this));
269+
} else {
270+
const exportRes = await cloneCommand.execute(new HandleExportCommand(null, this));
271+
await cloneCommand.execute(new SetBranchCommand(null, this));
272272

273-
if (exportRes) {
274-
this.executeDestination().catch(() => {
275-
reject();
276-
});
273+
if (exportRes) {
274+
this.executeDestination().catch(() => {
275+
reject();
276+
});
277+
}
277278
}
278279
return resolve();
279280
} catch (error) {

0 commit comments

Comments
 (0)