mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
fix: use push when switch workspace (#1049)
This commit is contained in:
@@ -86,7 +86,7 @@ export const WorkspaceModal = ({ open, onClose }: WorkspaceModalProps) => {
|
||||
<WorkspaceCard
|
||||
workspaceData={item}
|
||||
onClick={workspaceData => {
|
||||
router.replace(`/workspace/${workspaceData.id}/all`);
|
||||
router.push(`/workspace/${workspaceData.id}/all`);
|
||||
onClose();
|
||||
}}
|
||||
key={index}
|
||||
|
||||
Reference in New Issue
Block a user