TagSpaces is an offline, open source, document manager with tagging support
Unable to add tag groups after deleting all tag groups (#2313)
Stanimir7df4c7c0a071
diff --git a/src/renderer/components/TagLibrary.tsx b/src/renderer/components/TagLibrary.tsxindex b474afa4e..4fbe5d809 100644--- a/src/renderer/components/TagLibrary.tsx+++ b/src/renderer/components/TagLibrary.tsx@@ -287,7 +287,8 @@ function TagLibrary(props: Props) {' tag groups'}menuButton={- tagGroups.some((tg) => !tg.readOnly) && (+ // Display the menu button if there are editable tag groups or no tag groups exist (to allow creating new ones)+ (tagGroups.some((tg) => !tg.readOnly) || tagGroups.length === 0) && (<TsIconButtondata-tid="tagLibraryMenu"onClick={handleTagLibraryMenu}