Handle personal workspace case by adjusting orgId for document creation

This commit is contained in:
Leon Bösche
2026-01-14 03:56:19 +01:00
parent efa7e66b36
commit 94cb7bc99f

View File

@@ -316,8 +316,10 @@ class _FileExplorerState extends State<FileExplorer> {
try {
final fileService = getIt<FileService>();
// If orgId is 'personal', treat as empty string for personal workspace
final effectiveOrgId = (widget.orgId == 'personal') ? '' : widget.orgId;
final fileId = await fileService.createDocument(
widget.orgId,
effectiveOrgId,
currentPath,
docName,
);