Handle personal workspace case by adjusting orgId for document creation
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user