chore: workspace name
This commit is contained in:
1 parent
8358c66702
commit
8b239cd292
4 files changed
+7
-22
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user