TagSpaces is an offline, open source, document manager with tagging support
fix: reorder tags in tag groups with dnd #1619
Ilian Sapundshiev671b32d5c7cc
diff --git a/app/components/TagContainerDnd.tsx b/app/components/TagContainerDnd.tsxindex 716b70b5e..37b094745 100644--- a/app/components/TagContainerDnd.tsx+++ b/app/components/TagContainerDnd.tsx@@ -90,7 +90,11 @@ const boxTarget = {}, */hover(props, monitor) {const dragItem = monitor.getItem();- if (props.tagGroup && dragItem.sourceTagGroupId === props.tagGroup.uuid) {+ if (+ props.reorderTags &&+ props.tagGroup &&+ dragItem.sourceTagGroupId === props.tagGroup.uuid+ ) {// sort tagGroups tagsconst dragIndex = dragItem.index;const hoverIndex = props.index;