Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: issue with save file function on read only s3

Ilian Sapundshievb4353f35288c
diff --git a/src/renderer/components/dialogs/hooks/ResolveConflictContextProvider.tsx b/src/renderer/components/dialogs/hooks/ResolveConflictContextProvider.tsx
index 1a7ffe1d8..b3b35276b 100644
--- a/src/renderer/components/dialogs/hooks/ResolveConflictContextProvider.tsx
+++ b/src/renderer/components/dialogs/hooks/ResolveConflictContextProvider.tsx
@@ -141,7 +141,7 @@ export const ResolveConflictContextProvider = ({
textContent: string,
): Promise<boolean> {
const location = findLocation(fileOpen.locationID);
- if (location) {
+ if (!location?.isReadOnly) {
// write revisions
if (Pro && revisionsEnabled && !isMeta(fileOpen.path)) {
const id = await getMetadataID(fileOpen.path, fileOpen.uuid, location);