Skip to content

Commit

Permalink
ref: preview file when it's the only root upload
Browse files Browse the repository at this point in the history
  • Loading branch information
MontaGhanmy committed Jan 29, 2025
1 parent dfddbe8 commit bc8a38f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ class FileUploadService {
// create the document
const documentId = await DriveApiClient.create(context.companyId, { item, version });
// assign the group id with the document id
if (isFileRoot) this.groupIds[root] = documentId.id;
if (isFileRoot) {
this.groupIds[root] = documentId.id;
// set the id for the root
this.notify();
}
}
},
});
Expand Down

0 comments on commit bc8a38f

Please sign in to comment.