fix tag dragging
This commit is contained in:
@@ -694,7 +694,7 @@ const useDocumentsWorkspace = ({
|
||||
handleDocumentTagAttach,
|
||||
handleDocumentTitleUpdate,
|
||||
handleDocumentIssuedUpdate,
|
||||
handleTagRemove,
|
||||
handleDocumentTagDetach,
|
||||
} = useDocumentMutations({
|
||||
documentLookup,
|
||||
folderLabelMap,
|
||||
@@ -1003,7 +1003,7 @@ const useDocumentsWorkspace = ({
|
||||
window.removeEventListener('dragend', handleTagDragEnd, true);
|
||||
setTagRemovalCursor(false);
|
||||
};
|
||||
}, [handleTagRemove, setTagRemovalCursor]);
|
||||
}, [handleDocumentTagDetach, setTagRemovalCursor]);
|
||||
|
||||
|
||||
const {
|
||||
@@ -1026,7 +1026,7 @@ const useDocumentsWorkspace = ({
|
||||
handleDocumentTitleUpdate,
|
||||
handleDocumentIssuedUpdate,
|
||||
handleDocumentTagAdd,
|
||||
handleTagRemove,
|
||||
handleDocumentTagDetach,
|
||||
ensureAssetUrl,
|
||||
getAsset: getDocumentAsset,
|
||||
correspondents,
|
||||
@@ -1098,7 +1098,8 @@ const useDocumentsWorkspace = ({
|
||||
activeTagFilters,
|
||||
handleTagUpdate,
|
||||
handleTagDelete,
|
||||
handleDocumentTagDrop: handleDocumentTagAttach,
|
||||
handleDocumentTagAttach,
|
||||
handleDocumentTagDetach,
|
||||
handleBulkTagAddFromDetail,
|
||||
handleBulkTagRemoveFromDetail,
|
||||
openTagsModal,
|
||||
|
||||
Reference in New Issue
Block a user