chore: workspace name

This commit is contained in:
DarkSky
2022-08-12 19:29:33 +08:00
parent 8358c66702
commit 8b239cd292
4 changed files with 7 additions and 22 deletions
-9
View File
@@ -5,15 +5,6 @@ export function getUserDisplayName(user?: UserInfo) {
return nickname || username || email || 'Unknown User';
}
/**
* Get workspace_id from URL
* @returns workspace_id
*/
export function getWorkspaceId() {
const path = window.location.pathname.match(/\/(\w+)\//);
return path ? path[1] : undefined;
}
/**
* Get page_id from URL
* @returns page_id