fix: temporarily process the workspaceId in search

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