nit workspace add

This commit is contained in:
Ruben Fiszel
2024-09-10 12:48:40 +02:00
parent e824d2a76c
commit e63b15e430

View File

@@ -166,8 +166,7 @@ export async function add(
// first check whether workspaceId is actually a URL
try {
const url = new URL(workspaceId);
workspaceId = url.username;
url.username = "";
workspaceId = workspaceName;
remote = url.toString();
} catch {
// not a url