mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-08 12:45:55 +08:00
fix: logic after delete all workspaces (#2587)
Co-authored-by: JimmFly <yangjinfei001@gmail.com>
This commit is contained in:
@@ -290,7 +290,6 @@
|
||||
"com.affine.lastMonth": "Last month",
|
||||
"com.affine.lastYear": "Last year",
|
||||
"com.affine.earlier": "Earlier",
|
||||
"com.affine.workspace.cannot-delete": "You cannot delete the last workspace",
|
||||
"FILE_ALREADY_EXISTS": "File already exists",
|
||||
"others": "Others",
|
||||
"Update Available": "Update available",
|
||||
|
||||
@@ -36,6 +36,9 @@ rootCurrentWorkspaceIdAtom.onMount = set => {
|
||||
const value = url.split('/')[2];
|
||||
if (value) {
|
||||
set(value);
|
||||
if (typeof window !== 'undefined') {
|
||||
localStorage.setItem('last_workspace_id', value);
|
||||
}
|
||||
} else {
|
||||
set(null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user