Start of command palette

This commit is contained in:
Gregory Schier
2024-03-18 17:09:01 -07:00
parent 9d00eb98d2
commit 9797bc1830
13 changed files with 190 additions and 73 deletions

View File

@@ -13,6 +13,11 @@ export function RedirectToLatestWorkspace() {
const recentWorkspaces = useRecentWorkspaces();
useEffect(() => {
if (workspaces.length === 0) {
console.log('No workspaces found to redirect to. Skipping.');
return;
}
(async function () {
const workspaceId = recentWorkspaces[0] ?? workspaces[0]?.id ?? 'n/a';
const environmentId = (await getRecentEnvironments(workspaceId))[0];