Skip to content

Commit

Permalink
🐛 fix: fix import config (lobehub#2720)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx authored May 29, 2024
1 parent c8cc640 commit a5ddd9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/services/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class ConfigService {
return { type: 'settings' };
}

if (config.exportType === 'all') {
await importService.importSettings(config.state.settings);
}

const data = await importService.importData({
messages: (config.state as any).messages || [],
sessionGroups: (config.state as any).sessionGroups || [],
Expand Down

0 comments on commit a5ddd9a

Please sign in to comment.