mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-07 13:42:34 +00:00
chore: update router
This commit is contained in:
@ -22,6 +22,16 @@ const workspaceService = {
|
||||
return workspaces;
|
||||
},
|
||||
|
||||
getWorkspaceByName: (workspaceName: string) => {
|
||||
const workspaceList = workspaceService.getState().workspaceList;
|
||||
for (const workspace of workspaceList) {
|
||||
if (workspace.name === workspaceName) {
|
||||
return workspace;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
},
|
||||
|
||||
getWorkspaceById: (id: WorkspaceId) => {
|
||||
const workspaceList = workspaceService.getState().workspaceList;
|
||||
for (const workspace of workspaceList) {
|
||||
|
Reference in New Issue
Block a user