Some fixes around environments

This commit is contained in:
Gregory Schier
2024-12-21 11:04:49 -08:00
parent c1d5881167
commit 61d094d9fd
20 changed files with 95 additions and 46 deletions

View File

@@ -20,8 +20,11 @@ export function useSyncWorkspaceChildModels() {
const setEnvironments = useSetAtom(environmentsAtom);
const workspace = useActiveWorkspace();
const workspaceId = workspace?.id ?? 'n/a';
const workspaceId = workspace?.id;
useEffect(() => {
if (workspaceId == null) {
return;
}
(async function () {
console.log('Syncing model stores', { workspaceId });
// Set the things we need first, first