fix: quick search switch warning

This commit is contained in:
JimmFly
2022-12-20 13:09:19 +08:00
parent 45766b6b46
commit c67018997e
@@ -4,17 +4,23 @@ export const config = (currentWorkspaceId: string) => {
const List = [
{
title: 'All pages',
href: `/workspace/${currentWorkspaceId}/all`,
href: `/workspace/${
currentWorkspaceId ? currentWorkspaceId : 'undefined'
}/all`,
icon: AllPagesIcon,
},
{
title: 'Favourites',
href: `/workspace/${currentWorkspaceId}/favorite`,
href: `/workspace/${
currentWorkspaceId ? currentWorkspaceId : 'undefined'
}/favorite`,
icon: FavouritesIcon,
},
{
title: 'Trash',
href: `/workspace/${currentWorkspaceId}/trash`,
href: `/workspace/${
currentWorkspaceId ? currentWorkspaceId : 'undefined'
}/trash`,
icon: TrashIcon,
},
];