feat: refactor provider logic

This commit is contained in:
QiShaoXuan
2023-01-10 19:41:19 +08:00
parent 33400f1c5a
commit e8431122c9
4 changed files with 14 additions and 21 deletions

View File

@@ -55,7 +55,7 @@ export const WorkspaceModal = ({ open, onClose }: WorkspaceModalProps) => {
router.replace(`/workspace/${item.id}`);
onClose();
}}
active={item.id === currentWorkspace.room}
active={item.id === currentWorkspace?.room}
key={index}
>
<span style={{ width: '100px' }}>