Skip to content

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

disable create revisions in .ts folder files

sytolk6194df6ee96f
diff --git a/src/renderer/components/EntryContainer.tsx b/src/renderer/components/EntryContainer.tsx
index 6d9bab4ca..ad5410317 100644
--- a/src/renderer/components/EntryContainer.tsx
+++ b/src/renderer/components/EntryContainer.tsx
@@ -490,7 +490,13 @@ function EntryContainer() {
const textContent = fileViewer.current.contentWindow.getContent();
const location = findLocation(fileOpen.locationID);
if (location) {
- if (Pro && revisionsEnabled) {
+ if (
+ Pro &&
+ revisionsEnabled &&
+ fileOpen.path.indexOf(
+ location.getDirSeparator() + AppConfig.metaFolder,
+ ) === -1
+ ) {
const id = await getMetadataID(fileOpen.path, fileOpen.uuid, location);
const targetPath = getBackupFileLocation(
fileOpen.path,