fix(site): use search params for model edit/add navigation (#23277)

This commit is contained in:
Danielle Maywood
2026-03-19 16:50:31 +00:00
committed by GitHub
parent 91d7516dc1
commit 84f032d97c
6 changed files with 452 additions and 39 deletions
+7
View File
@@ -626,6 +626,13 @@ class ApiMethods {
return response.data;
};
getUser = async (userIdOrName: string): Promise<TypesGen.User> => {
const response = await this.axios.get<TypesGen.User>(
`/api/v2/users/${encodeURIComponent(userIdOrName)}`,
);
return response.data;
};
/**
* Get users for workspace owner selection. Requires
* permission to create workspaces for other users in the