mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-23 18:01:08 +01:00
Start of command palette
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user