Skip to content

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.tsx
index 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 tags
const dragIndex = dragItem.index;
const hoverIndex = props.index;