Remove folder/environment foreign keys to make sync/import easier, and simplify batch upsert code.

This commit is contained in:
Gregory Schier
2025-04-24 19:57:02 -07:00
parent 9fa0650647
commit bb014b7c43
6 changed files with 279 additions and 58 deletions

View File

@@ -11,6 +11,7 @@ export const openWorkspaceFromSyncDir = createFastMutation<void, void, string>({
const workspace = ops
.map((o) => (o.type === 'dbCreate' && o.fs.model.type === 'workspace' ? o.fs.model : null))
.filter((m) => m)[0];
if (workspace == null) {
showSimpleAlert('Failed to Open', 'No workspace found in directory');
return;