Skip to content

Commit

Permalink
fix: 🔥 on click run the strategy saves as empty name
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeep-deriv committed Oct 17, 2024
1 parent 4f800c4 commit b6db62c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/external/bot-skeleton/utils/local-storage.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import localForage from 'localforage';
import LZString from 'lz-string';
import { config } from '../constants';
import { save_types } from '../constants/save-type';
import DBotStore from '../scratch/dbot-store';

/**
* Save workspace to localStorage
* @param {String} save_type // constants/save_types.js (unsaved, local, googledrive)
Expand Down Expand Up @@ -31,7 +33,7 @@ export const saveWorkspaceToRecent = async (xml, save_type = save_types.UNSAVED)
workspaces.push({
id: workspace_id,
timestamp: current_timestamp,
name: save_modal.bot_name,
name: config().default_file_name,
xml: current_xml,
save_type,
});
Expand Down

0 comments on commit b6db62c

Please sign in to comment.