Skip to content

Commit 57ef031

Browse files
fix: added missing code
1 parent 722e167 commit 57ef031

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,14 @@ class CloneHandler {
267267
return reject('Org not found.');
268268
}
269269
}
270+
const exportRes = await cloneCommand.execute(new HandleExportCommand(null, this));
271+
await cloneCommand.execute(new SetBranchCommand(null, this));
272+
273+
if (exportRes) {
274+
this.executeDestination().catch(() => {
275+
reject();
276+
});
277+
}
270278
return resolve();
271279
} catch (error) {
272280
return reject(error);

0 commit comments

Comments
 (0)