Skip to content

Commit

Permalink
fix: disable read mode for local drives
Browse files Browse the repository at this point in the history
  • Loading branch information
acaldas committed Sep 12, 2024
1 parent d0a09f3 commit dc1f0ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/store/document-drive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ export function useFileNodeDocument(
} = props;
const [fileNodeDocument, setFileNodeDocument] =
useAtom(fileNodeDocumentAtom);
const isReadMode = selectedDriveNode?.syncStatus === undefined;
const isReadMode =
selectedDriveNode?.sharingType !== 'LOCAL' &&
selectedDriveNode?.syncStatus === undefined;
const driveId = selectedNode?.driveId;
const documentId = selectedNode?.id;
const kind = selectedNode?.kind;
Expand Down

0 comments on commit dc1f0ac

Please sign in to comment.