We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57ef031 commit e7f2299Copy full SHA for e7f2299
1 file changed
packages/contentstack-clone/src/lib/util/clone-handler.js
@@ -266,14 +266,15 @@ class CloneHandler {
266
} else {
267
return reject('Org not found.');
268
}
269
- }
270
- const exportRes = await cloneCommand.execute(new HandleExportCommand(null, this));
271
- await cloneCommand.execute(new SetBranchCommand(null, this));
+ } else {
+ const exportRes = await cloneCommand.execute(new HandleExportCommand(null, this));
+ await cloneCommand.execute(new SetBranchCommand(null, this));
272
273
- if (exportRes) {
274
- this.executeDestination().catch(() => {
275
- reject();
276
- });
+ if (exportRes) {
+ this.executeDestination().catch(() => {
+ reject();
+ });
277
+ }
278
279
return resolve();
280
} catch (error) {
0 commit comments