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 {
|
try {
|
||||||
final fileService = getIt<FileService>();
|
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(
|
final fileId = await fileService.createDocument(
|
||||||
widget.orgId,
|
effectiveOrgId,
|
||||||
currentPath,
|
currentPath,
|
||||||
docName,
|
docName,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user