This commit is contained in:
2025-11-20 02:36:32 +01:00
parent 78e6d3e431
commit a08e975da1
5 changed files with 6 additions and 21 deletions
@@ -134,8 +134,6 @@ interface UseDocumentMutationsArgs {
closeDocumentPreview: CloseDocumentPreview;
previewDocumentId?: DocumentId | null;
refreshCurrentFolder: () => Promise<void>;
refreshVisibleDocuments: () => Promise<void>;
documentsViewMode?: string;
updateDocumentCaches: UpdateDocumentCaches;
tagLookupById: Map<DocumentId, Tag>;
tags: Tag[];
@@ -212,8 +210,6 @@ const useDocumentMutations = ({
closeDocumentPreview,
previewDocumentId,
refreshCurrentFolder,
refreshVisibleDocuments,
documentsViewMode,
updateDocumentCaches,
tagLookupById,
tags,
@@ -641,7 +637,7 @@ const useDocumentMutations = ({
notifyApiError(error, 'Failed to assign tag.');
}
},
[api, tags, refreshTags, attachTagToDocument, notifyApiError, setStatusMessage, tagManager],
[api, tags, refreshTags, attachTagToDocument, notifyApiError, tagManager],
);
const handleDocumentTagAttach = useCallback(
@@ -366,7 +366,6 @@ const useDocumentsWorkspace = ({
activeCorrespondentFilters,
setActiveCorrespondentFilters,
isFilterActive,
refetchSearchResults,
documentsFilterValue,
} = useDocumentsSearch({
api,
@@ -602,14 +601,6 @@ const useDocumentsWorkspace = ({
}
}, [selectedFolder, ensureFolderData, applySelectedFolder, notifyApiError]);
const refreshVisibleDocuments = useCallback(async () => {
if (showingSearchResults) {
await refetchSearchResults();
return;
}
await refreshCurrentFolder();
}, [showingSearchResults, refetchSearchResults, refreshCurrentFolder]);
const {
handleBulkTagAddFromDetail,
handleBulkTagRemoveFromDetail,
@@ -854,8 +845,6 @@ const useDocumentsWorkspace = ({
closeDocumentPreview,
previewDocumentId,
refreshCurrentFolder,
refreshVisibleDocuments,
documentsViewMode,
updateDocumentCaches,
tagLookupById,
tags,