mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
fix: logic after delete all workspaces (#2587)
Co-authored-by: JimmFly <yangjinfei001@gmail.com>
This commit is contained in:
@@ -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