feat(core): save last opened workspace id when import clipper (#12487)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **New Features**
  - The app now remembers the last selected workspace when importing, improving continuity for future imports.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
EYHN
2025-05-26 09:51:09 +00:00
parent 9d2330fc2b
commit 01369954d6

View File

@@ -108,6 +108,8 @@ export const Component = () => {
const handleImportToSelectedWorkspace = useAsyncCallback(async () => {
if (clipperInputSnapshot && selectedWorkspace) {
// save the last opened workspace id
localStorage.setItem('last_workspace_id', selectedWorkspace.id);
setImporting(true);
try {
await importClipperService.importToWorkspace(