Skip to content

Commit

Permalink
chore: revert save-modal-store commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shafin-deriv committed Sep 13, 2023
1 parent c3fee7d commit 9f64377
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/bot-web-ui/src/stores/save-modal-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,14 @@ export default class SaveModalStore implements ISaveModalStore {
this.setButtonStatus(button_status.COMPLETED);
}

this.updateBotName(bot_name);

if (active_tab === 0) {
const workspace_id = selected_strategy.id || Blockly?.utils?.genUid();
await this.addStrategyToWorkspace(workspace_id, is_local, save_as_collection, bot_name, xml);
if (main_strategy) await loadStrategyToBuilder(main_strategy);
} else {
await saveWorkspaceToRecent(xml, is_local ? save_types.LOCAL : save_types.GOOGLE_DRIVE);
}
this.updateBotName(bot_name);
this.toggleSaveModal();
}

Expand Down

0 comments on commit 9f64377

Please sign in to comment.