TagSpaces is an offline, open source, document manager with tagging support
fix selectedTabIndex if revision tab is missing
Stanimire1c05c19b65a
diff --git a/src/renderer/components/EntryContainerTabs.tsx b/src/renderer/components/EntryContainerTabs.tsxindex 8decd6162..8646aa938 100644--- a/src/renderer/components/EntryContainerTabs.tsx+++ b/src/renderer/components/EntryContainerTabs.tsx@@ -192,8 +192,11 @@ function EntryContainerTabs(props: EntryContainerTabsProps) {};// directories must be always opened- const selectedTabIndex =+ let selectedTabIndex =!openedEntry.isFile && tabIndex === undefined ? 0 : tabIndex;+ if (!haveRevisions.current && selectedTabIndex === 2) {+ selectedTabIndex = 0;+ }return (<div