Skip to content

Commit

Permalink
fix: update bot name on saving bot
Browse files Browse the repository at this point in the history
  • Loading branch information
shafin-deriv committed Sep 13, 2023
1 parent 111151f commit 111e082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bot-web-ui/src/stores/save-modal-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +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 111e082

Please sign in to comment.