fix tag dragging

This commit is contained in:
2025-12-08 12:30:44 +01:00
parent 608239e412
commit 44cf4603fe
3 changed files with 12 additions and 11 deletions
@@ -27,7 +27,7 @@ interface UseDetailWorkspaceArgs {
handleDocumentTitleUpdate?: (docId: Identifier, title: string) => Promise<boolean> | boolean;
handleDocumentIssuedUpdate?: (docId: Identifier, issued: number | null) => Promise<boolean> | boolean;
handleDocumentTagAdd?: (doc: Document, value: string, context?: { option?: unknown }) => void;
handleTagRemove?: (...args: unknown[]) => void;
handleDocumentTagDetach?: (...args: unknown[]) => void;
ensureAssetUrl?: EnsureAssetUrl;
getAsset?: GetAsset;
correspondents?: unknown[];
@@ -64,7 +64,7 @@ const useDetailWorkspace = ({
handleDocumentTitleUpdate,
handleDocumentIssuedUpdate,
handleDocumentTagAdd,
handleTagRemove,
handleDocumentTagDetach,
ensureAssetUrl,
getAsset,
correspondents,
@@ -184,7 +184,7 @@ const useDetailWorkspace = ({
tags,
tagLookupById,
onTagAdd: handleDocumentTagAdd,
onTagRemove: handleTagRemove,
onTagRemove: handleDocumentTagDetach,
onOpenPreview: openDocumentPreview,
activePreviewId,
onUpdateTitle: handleDocumentTitleUpdate,
@@ -212,7 +212,7 @@ const useDetailWorkspace = ({
handleDocumentTagAdd,
handleDocumentIssuedUpdate,
handleDocumentTitleUpdate,
handleTagRemove,
handleDocumentTagDetach,
folderNodes,
ensureFolderData,
openDocumentPreview,